Share » Forums » General » display the name of the main item...

display the name of the main item clicked in the Left menu

display the name of the main item clicked in the Left menu

Tuesday 03 January 2006 1:38:21 am - 1 reply

Author Message

Philipp Simon

Saturday 17 June 2006 9:10:56 am

I justed searched myself in the forum for a solution. Finally I found nothing and came up with this little hack. I am new to ezPublish, so perhaps there is a much better way for doing this.

{if eq( $module_result.node_id, 2 ) }
     {let $tmp_root_node=fetch( content, node, hash( node_id, 2 ) )}
          <div class="menu-header">{$tmp_root_node.name}</div>
     {/let}
{else}
     <div class="menu-header">{$module_result.path[1].text}</div>
{/if}

Phil

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

36 542 Users on board!

Forums menu