17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 3801 Views |
-
nested menus

16 April 2007 at 9:48am
Is this type of menu nesting possible?
<div id="menu_vert">
<ul>
<% control Menu(2) %>
<li class="$LinkingMode"> <a href="$Link" alt="$Title"><dfn> </dfn>$MenuTitle</a>
<% if Menu(3) %>
<ul>
<% control Menu(3) %>
<li><a href="$Link" alt="$Title"><dfn> </dfn>$MenuTitle</a></li>
<% end_control %>
<ul/>
<% end_if %>
</li>
<% end_control %>
</ul>
</div> -
Re: nested menus

16 April 2007 at 9:58am
That should work
Or you could try controlling the children of the menu 2 if this method does not work. -
Re: nested menus

16 April 2007 at 10:47am Last edited: 16 April 2007 12:38pm
Doesn't work becouse Menu() is top level
I tried that when I was making my multilevel menu.I sadly don't have access to that code anymore, but I'll remake it tomorow. It's not hard ;) u should use <% control Children %>... -
Re: nested menus

16 April 2007 at 11:25am
would I just replace <% control Menu(3) %> with <% control Children %> because this does not seem to work
thanks!
-
Re: nested menus

21 April 2007 at 4:58pm
Can you post your solution? I am trying to get the same thing working.
-
Re: nested menus

22 April 2007 at 2:01pm Last edited: 22 April 2007 7:53pm
This is what I usually do when making nested menu's:
<ul id="Menu1">
<% control Menu(1) %>
<li class="$LinkingMode<% if FirstLast %> $FirstLast<% end_if %>>
<a href="$Link" title="View page $MenuTitle">$MenuTitle</a>
<% if Children %>
<ul class="Menu2">
<% control Children %>
<li class="$LinkingMode<% if FirstLast %> $FirstLast<% end_if %>>
<a href="$Link" title="View page $MenuTitle">$MenuTitle</a>
</li>
<% end_control %>
</ul>
<% end_if %>
</li>
<% end_control %>
</ul>Something like this should get you 2 levels, just keep nesting <% control Children %> if you want 3 levels deep, or more.
Also, if you only want to show the children currently in the section you're in, just nest <% if LinkOrSection = section %> after <% if Children %>.
-
Re: nested menus

8 November 2007 at 7:01am
This doesn't seem to be working for me. Is this the code I would put in my navigation include because that's where I put it. Since it's in there I'm assuming that in Page.ss I only need <% include Navigation %>. But I'm not getting my neted menu. Just Menu(1).
| 3801 Views | ||
|
Page:
1
|
Go to Top |






