Menu positions. [SOLVED]

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
allexunder
New Member
New Member
Posts: 4
Joined: Fri Oct 23, 2009 2:58 pm

Menu positions. [SOLVED]

Post 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.
Last edited by allexunder on Thu Oct 29, 2009 2:36 pm, edited 1 time in total.
Peciura

Re: Menu positions.

Post 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.
allexunder
New Member
New Member
Posts: 4
Joined: Fri Oct 23, 2009 2:58 pm

Re: Menu positions.

Post 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!
Post Reply

Return to “Layout and Design (CSS & HTML)”