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

Admin Interface - include custom navigationpart menu template automatically

    XMLWordPrintable

Details

    Description

      When you are developing custom extension which works with the ezcontentobject model you can assign different ez navigationparts with a section on a content subtree.
      This is fine .

      But if you want to have a different left_menu you have to modify the admin pagelayout.tpl to include your own menu tpl.

      e.g ( ez default )
      'ez content navigationpart' =>

      {include uri='design:parts/content/menu.tpl'}

      'ez customtext navigationpart' =>

      {include uri='design:parts/customtext/menu.tpl'}

      I did a little enhancement, that will extract the tpl name for the custom navigationpart and include this template.

      The $navigationpart.identifier variable is only available if you did not set the navigationpart in your custom extension in module.php. Therefore their is a switch. See attached patch for details.

      I hope this little enhancement will be in ez core in the future. So it is easier to make custom extensions with admin interfacemodifications.

      Thank's
      Best regards Felix Woldt

      Attachments

        Activity

          People

            ls ls
            4d91e976-d41f-487b-ae85-f7216bd06dac@accounts.ibexa.co Felix Woldt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: