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

Overriding template with section_identifier fails when cached



      If a template is declared to override using the match by section_identifier, and the view cache is enabled, the cached versions will fall back to default templates and ignore the overrides.

      test case:
      1 - setting up the environment

      • enable debug and list templates options in admin
      • create a section called "test" (name and identifier)
      • create a folder X, set the section to "test"
      • assign anonymous user permissions to read section "test"
      • open X in frontend
      • check the full path of the "pagelayout.tpl" used, to override it. it will depend on the extension used to generate the frontend (ezflow, ezdemo, etc)

      2 - making the override

      • edit the "pagelayout.tpl" file with some change, save it at the path <extension>/overrides/templates/modified_pagelayout.tpl
      • add to the default frontend siteaccess settings/override.ini.append.php:


      • clear all caches
      • open X in frontend. the modified_pagelayout.tpl is used, at bottom of debug it can be checked the correct usage.
      • reload the page, view falls back to default template. the debug at bottom shows that none of the templates are overriden.


        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Confirmed Confirmed
        14s 1 Paulo Bras (Inactive) 19/Mar/15 3:11 PM
        Confirmed Confirmed InputQ InputQ
        19h 46m 1 Paulo Lopes (Inactive) 20/Mar/15 10:58 AM
        InputQ InputQ Development Development
        3d 9h 46m 1 André Rømcke 23/Mar/15 8:44 PM
        Development Development Development Review Development Review
        18m 34s 1 André Rømcke 23/Mar/15 9:03 PM
        Development Review Development Review Development Review done Development Review done
        18h 21m 1 André Rømcke 24/Mar/15 3:24 PM
        Development Review done Development Review done Documentation Review done Documentation Review done
        6m 56s 1 André Rømcke 24/Mar/15 3:31 PM
        Documentation Review done Documentation Review done QA QA
        5m 37s 1 rui.silva@ez.no 24/Mar/15 3:37 PM
        QA QA Closed Closed
        1d 1h 49m 1 rui.silva@ez.no 25/Mar/15 5:27 PM


          • Assignee:
            Paulo Bras (Inactive)
          • Votes:
            0 Vote for this issue
            3 Start watching this issue


            • Created: