Jump to:

1382 Posts in 491 Topics by 521 members

Themes

SilverStripe Forums » Themes » problem with 3rd level navigation drop-down menu

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 3005 Views
  • Eutanazie
    Avatar
    Community Member
    2 Posts

    problem with 3rd level navigation drop-down menu Link to this post

    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>

  • Eutanazie
    Avatar
    Community Member
    2 Posts

    Re: problem with 3rd level navigation drop-down menu Link to this post

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

  • Stompit
    Avatar
    Community Member
    17 Posts

    Re: problem with 3rd level navigation drop-down menu Link to this post

    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

    3005 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.