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

section-based override fails until object is first published

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.10.0alpha1, 3.9.3
    • 3.9.1
    • Misc
    • None
    • Operating System: Debian
      PHP Version: 4.4.4-8+etch1
      Database and version: 5.0.32-7etch1
      Browser (and version):

      eZ version: stable/svn rev 18278 (revision from admin interface)

    Description

      Hi

      I have an override for an e template, in this case one that is used when a node is edited, content/edit_attribute.tpl defined for a specific section in override.ini.append.php:

      [edit_attribute_cs]
      Source=content/edit_attribute.tpl
      MatchFile=content/edit_attribute_cs.tpl
      Subdir=templates
      Match[section]=6
      

      The override does not work when a new node is created in section 6. It does work when an existing node in section 6 is edited.

      This seems to imply either that the node is not being correctly assigned to the section until it is first published, or that the template override mechanism is not checking the section-to-be when rendering the edit view for the new node.

      Thanks
      Matthew

      Steps to reproduce

      1. Create new section.
      2. Override edit template based on that section.
      3. Override doesn't work for new nodes, only existing nodes being edited.

      Attachments

        Activity

          People

            rl rl
            matthewc matthewc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: