Details
-
Improvement
-
Resolution: Fixed
-
Medium
-
2015.11.2
-
None
Description
There was a discussion on the slack community channel about what is currently the correct way to use ez_image_alias (with translation support) seeing that it requires a field object to be used, and ez_field_value() doesn't return what we need.
This would be a simple new twig helper, called ez_field() and it would be largely the same as getTranslatedFieldValue() except it would return the whole Field, not just the value.
I have a PR (at least the needed changes in ContentExtension) almost ready. Just creating this ticket before hand so that I can mention it in the commit.
Here's the PR now: https://github.com/ezsystems/ezpublish-kernel/pull/1548