Page 1 of 1

Menu positions. [SOLVED]

Posted: Wed Oct 28, 2009 4:35 pm
by allexunder
Hello!

I have one problem.

I have my site’s 1st level menu. In some positions of this menu I have 2nd and 3rd levels of the menu.

In the second level I need have title (I choose content type: “Section Header”). Under this one located the 3rd menu level (and this is active link).

My 2nd and 3rd menu levels are separated from the 1st level menu. And it (2nd and 3rd) has own {menu} and own template, which content:

Code: Select all

{foreach from=$nodelist item=node}

{if $node->depth ==2 }
	{if $node->target ==0}
	<font class="menu2">{$node->menutext}</font><p />
	{else}
	<a href="{$node->url}" class="menu2">{$node->menutext}</a><p />
	{/if}
{/if}

{if $node->depth ==3 }
	{if $node->current}
	<a href="{$node->url}" class="selmenu">{$node->menutext}</a><br />
	{else}
	<a href="{$node->url}" class="menu3">{$node->menutext}</a><br />
	{/if}
{/if}

{/foreach}
And I need that this submenu (2nd and 3rd levels) opening in one time, but only with his own 1st level menu link.
The decision arises:  collapse='1' in the 2nd {menu}.

But big problem, that collapse='1' show only submenu when opened menu, and don’t show sub-sub menu.
If you want to see sub-submenu you need to open submenu, but it’s impossible because my submenu it’s just a title and can’t be opened.

I tried some ways, but it was ineffectual.

Re: Menu positions.

Posted: Wed Oct 28, 2009 7:08 pm
by Peciura
Post link to your page. And write in words what menu items should be visible when particular 1st level menu item is pressed.

Or try changing 1st level (parent page)  content type to "Internal Page Link" and direct it to 3rd level page.

If you  like you could build menu on minimal template and hide or show certain items with css.

Re: Menu positions.

Posted: Thu Oct 29, 2009 9:40 am
by allexunder
Peciura, thank you for your answer!

I'm understood that I needn't make the 3rd menu level. Now I'm make only 2nd level and mark my titles in this menu, like  “Section Header”. And wrote this templete:

Code: Select all

{foreach from=$nodelist item=node}

{if $node->depth ==2 }
	{if $node->url =='#'}
	<font class="menu2">{$node->menutext}</font><p />
	{else}
	<a href="{$node->url}" class="menu3">{$node->menutext}</a><p />
	{/if}
{/if}

{/foreach}
And that is all! So easy!
Thanks!