How to use dynamic contentstructure menu in own templates?

Author Message

B. Vollmer

Monday 26 January 2009 8:59:46 am

I switched to ezP 4 some days ago and I used the ezodcsm-extension in my old ezP 3 installation. Now I want use the included dynamic treemenu from the admin interface in my own siteaccess. I took the following code snippet from a admin template an switched the 'Dynamic' attribute to 'enabled' for my siteaccess. But the snippet doesn't work, the template didn't generated any output. The static menu is working when I set 'Dynamic' to disabled, but there are no (+) icons to expand the subfolders.

{if ezini('TreeMenu','Dynamic','contentstructuremenu.ini')|eq('enabled')}
    {include uri='design:contentstructuremenu/content_structure_menu_dynamic.tpl'}
{else}
    {include uri='design:contentstructuremenu/content_structure_menu.tpl'}
{/if}

Does anybody know how to fix this?

B. Vollmer

Monday 02 March 2009 3:10:25 am

I'm still interested in this topic.

Is there anybody out there who can help me?

Paul Forsyth

Monday 02 March 2009 3:52:37 am

It may be because the old extension was for eZ 3 and the code needs to updated for eZ4 and PHP5.

Have you looked into the logs to see if there are errors?

Paul

B. Vollmer

Monday 02 March 2009 8:44:38 am

The ezodcsm extension was published for an optimized AJAX supported contentstructure tree in eZ Publish 3. It is not supported anymore since eZ Publish 4 has an AJAX contentstructure tree already built in. So I didn't install the plugin.

I want to use the provided dynamic contentstructure menu from the eZ Publish admin siteaccess in my own custom siteaccess. This should be possible or am I wrong?

Paul Forsyth

Monday 02 March 2009 9:18:21 am

Yes, its perfectly possible.

Have you copied across all relevant templates into your own design? The templates reside within the admin design directory.

Paul

B. Vollmer

Thursday 05 March 2009 6:37:57 am

I made an override template for content_structure_menu_dynamic.tpl with the content of the the file from the admin siteaccess. Now I have an output for the dynamic menu, but it's still a static one without icons to expand the main tree folders dynamicly. I think something is missing to generate the AJAX tree menu. Do I need to include some extra JS-libraries in my main pagelayout?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.