Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Drop-down menus for SS

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1230 Views
  • PeteF
    Community Member
    8 Posts

    Drop-down menus for SS Link to this post

    Hi guys

    I was just wondering, I've just found SS today. It looks like an incredibly powerful system which I would like to start specialising in using/deploying.

    I've looked through some of the demo sites that are online and I can't find anyone that had implemented a drop-down menu for their main menu. I was wondering if anyone has managed to get a menu like this implemented successfully. I'm guessing if I can find a drop-down menu that is based upon using a UL structure in order to build the various tabs, it could be easily implemented.

    Does anyone have any idea of how this could be achieved and has anyone got any examples of a successful implementation?

    Pete Fernando

  • Liam
    Community Member
    470 Posts

    Re: Drop-down menus for SS Link to this post

    Yes it is possible.

    Here is my code that is a very basic 1 level drop down. You can customize it all you want to add more levels. I personally use son of suckerfish for the css/javascript, though the below is a basic html list.

    <ul id="nav">
    <% control Menu(1) %>
    <% if Children %>
       <li id="nav-$URLSegment"><div><a href="$Link" title="Go to the $Title.XML page">$MenuTitle</a></div>
    <% control Children %>
       <li><a href="$Link" title="Go to the $Title.XML page">$MenuTitle</a></li>
    <% end_control %>
    <% else %>
       <li id="nav-$URLSegment"><div><a href="$Link" title="Go to the $Title.XML page">$MenuTitle</a></div></li>
    <% end_if %>
    <% end_control %>

  • Nivanka
    Community Member
    395 Posts

    Re: Drop-down menus for SS Link to this post

    if you need any examples, check the template I did for SilverStripe


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.