Presenting links in dynamic menu

Presenting links in dynamic menu

Sunday 06 March 2005 8:59:56 am - 2 replies

Modified on Friday 15 April 2005 1:52:05 am by Halvor M

Author Message

Ɓukasz Serwatka

Sunday 06 March 2005 10:21:23 pm

Hi Halvor,

Welcome to eZ publish Comminity!

In design/base/templates/menu/ is sub_left.tpl file. There you can make edits. Use section to check object class id. If object class id is "link" then show only URLs. Good example is in double_top.tpl file.
http://ez.no/ez_publish/documentation/reference/template_functions/program_flow/section

I hope it will help.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Halvor M

Monday 07 March 2005 3:17:21 pm

Thanks, I looked in the sub_left.tpl file. It looks like this:

<div id="leftmenu">
<div id="leftmenu-design">

<h3 class="hide">{"Left sub menu"|i18n("design/base")}</h3>

{section show=and( is_set( $module_result.path[1] ), is_set( $module_result.node_id ) )}
{let root_node=fetch( content, node, hash( node_id, 2 ) )
     submenu=fetch( content, list, hash( parent_node_id, $module_result.path[1].node_id,
                                         class_filter_type, include,
                                         class_filter_array, ezini( 'MenuContentSettings', 'LeftIdentifierList', 'menu.ini' ),
                                         sort_by, $root_node.sort_array ) )}
    <ul>
    {section var=menu loop=$submenu}
        <li class="menu-level-0"><a href={$menu.url_alias|ezurl}>{$menu.name|shorten( 25 )}</a></li>
    {/section}

    {section show=$submenu|count}
    <li class="menu-level-0"></li>
    {/section}
    </ul>

    <div class="breakall"></div>

{/let}
{/section}

</div>
</div>

The URL ref's would be altered to a dynamic tree content-menu.

Halvor

You must be logged in to post messages in this topic!

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