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

Pagelayout override by section id matchs previous when navigating to page without a section id

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Medium Medium
    • Future
    • 4.0.6, 4.1.3, 4.2.0alpha1
    • None
    • Operating System: windows XP
      PHP Version: (please be specific, like '4.4.3' or '5.1.5') : 5.2.6
      Database and version: mySQL 5.0.51b
      Browser (and version): IE 7.0.57 / Mozzila 3.5

    Description

      see issue http://issues.ez.no/IssueView.php?Id=8916&activeItem=18

      I have a pagelayout override that matches on a section id, which works as intended, in that I go to the pagelayout_alt when I navigate to that section.

      However, I've noticed something weird happening:

      if I navigate from a page that uses pagelayout_alt to a page that has no section id - like user/* or extension/* - it ends up using the pagelayout_alt template.

      But, if I navigate from a page that has a section id that does not match the override and go to a page with no section id (user/login again) it uses the pagelayout template.

      This is the behaviour on multiple test machines/versions.

      Steps to reproduce

      create a new section and assign nodes
      create a new pagetemplate.tpl
      add in override.ini.append.php :
      [mise_en_page_principale]
      Source=pagelayout.tpl
      MatchFile=mypagelayout.tpl
      Subdir=templates
      Match[section]=8

      Browse to a node not in section 8 : default pagelayout is displayed.
      Browse to login or tagcloud or basket : default pagelayout is displayed

      Browse to a node in section 8 : mypagelayout is displayed
      Borwse to login or tagcloud or basket : mypagelayout is displayed which is not the wanted behaviour.

      Attachments

        Activity

          People

            unknown unknown
            boubil2 boubil2
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: