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

Allow override of simple_*_field blocks

    XMLWordPrintable

Details

    Description

      Hi,
      it is impossible to override the blocks called from parent block with the 'block function':

      to reproduce this:

      declare a global template override:

      ezpublish.yml
      ezpublish:
          system:
              my_site:
                  field_templates:
                      - { template: SiteBundle:Fields:content_fields.html.twig, priority: 10 }
      
      

      override one of those functions:

      SiteBundle:Fields:content_fields.html.twig
      {% extends "EzPublishCoreBundle::content_fields.html.twig" %}
      
      {% block simple_block_field %}
              NEVER CALLED
      {% endblock %}
      
      {% block simple_inline_field %}
            NEVER CALLED
      {% endblock %}
      

      PR is in progress but i need an insight from the engineering team.

      Thanks

      Attachments

        Activity

          People

            Unassigned Unassigned
            paradox paradox
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: