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

ez_render_field should be able to use current template as parameter

    Details

      Description

      Twig allows the use of the global variable _self to specify the current template : http://twig.sensiolabs.org/doc/templates.html#global-variables

      Using ez_render_field it is possible to specify the template that will be used using the optional parameters: https://confluence.ez.no/display/EZP/ez_render_field

      If the override is used only in the current template, it would be convenient to be able to code it within the current template and use _self as template parameter.

        Issue Links

          Activity

          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          Found while implementing EZP-21532

          Show
          Jérôme Vieilledent (Inactive) added a comment - Found while implementing EZP-21532
          Show
          Jérôme Vieilledent (Inactive) added a comment - PR: https://github.com/ezsystems/ezpublish-kernel/pull/544
          Show
          Jérôme Vieilledent (Inactive) added a comment - Implemented in master: https://github.com/ezsystems/ezpublish-kernel/commit/db5decac3b03881aa114f7329f0b19af0d5d61a8
          Show
          Jérôme Vieilledent (Inactive) added a comment - Documentation update
          Hide
          Filipe Dobreira (Inactive) added a comment -

          QA Approved.

          Show
          Filipe Dobreira (Inactive) added a comment - QA Approved.

            People

            • Assignee:
              Unassigned
              Reporter:
              Yannick Roger (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: