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

Checking for existence of legacy templates does not work

    XMLWordPrintable

Details

    Description

      When trying to do something like this:

      {% include [
              'NetgenSiteBundle:parts:' ~ template ~ '.html.twig',
              'design:parts/' ~ template ~ '.tpl',
              'design:parts/default.tpl'
          ] ignore missing
          with {
              'location': location,
              'node': location
          }
      %}
      

      And first two templates do not exist, but the third one does, nothing will be rendered, while third template should be rendered.

      What happens is that legacy rendering engine does not recognize a missing legacy template properly and instead returns an empty string to be rendered.

      Attachments

        Activity

          People

            Unassigned Unassigned
            edi.modric Edi Modrić
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: