Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25329

getTranslatedField twig helper function

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Medium Medium
    • 16.02
    • 2015.11.2
    • Platform stack
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            a32b70f8-5314-4598-869d-1f3fa00378ff@accounts.ibexa.co Rihards Steinbergs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: