craft-build-query
craft-build-query copied to clipboard
Problem with extending EntryModel
I tried using your trick with extending the EntryModel to add another field (count) to the existing ones. Problem is, if I do it the same way that you do, custom fields are not available in the templates under their usual handle, myCustomField, but as field_myCustomField. Title and count is available as you show in your example, but not custom fields. I tested this with your plugin too, and get the same result.
Any idea if this is possible to fix?
Had the same issue.
Remove $model->setContent($value); from the populateModels method.
I guess that was used for an older version of Craft