Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Themes /

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

problem with 3rd level navigation drop-down menu


Reply


3 Posts   3073 Views

Avatar
Eutanazie

Community Member, 2 Posts

16 May 2009 at 9:18am

hi all,

i'm converting my static site to silverstripe theme and i have small problem with dropdown navigation. i have find on this forum sample code which works great for me but with one error. unfortunately, on third level position navigation shows second level items again.
so, first level navigation is ok, second level is ok and third level elements position is ok but links and titles are from second level.

thanks for any help...

--------------------------

<div id="toolbar">               
   <ul>
      <% control Menu(1) %>
      <li><a href="$Link">$MenuTitle</a>

   <ul id="subnav1">
      <% control Children %>
      <li><a href="$Link">$MenuTitle</a>
      <% end_control %>

      <ul id="subnav2">
      <% control Children %>
      <li><a href="$Link">$MenuTitle</a></li>
      <% end_control %>
   </ul></li>
   </ul>
   </li><% end_control %>
</ul>
</div>

Avatar
Eutanazie

Community Member, 2 Posts

16 May 2009 at 10:17am

problem solved. thank's anyway... ;-)

Avatar
Stompit

Community Member, 17 Posts

1 July 2009 at 2:43pm

Could you post your solution? It also looks like you'll end up with empty ul's if you don't happen to have a third level in any particular seciton?

Thanks
D