Jump to:

3439 Posts in 1028 Topics by 869 members

Template Questions

SilverStripe Forums » Template Questions » Drop Down menus in silverstripe

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

Page: 1
Go to End
Author Topic: 1422 Views
  • dreamstudio
    Community Member
    48 Posts

    Drop Down menus in silverstripe Link to this post

    We have a client who has a site design with a top and a side navigation. They are done as graphics and when the user rolls the mouse over that image it has a css ( or dhtml ) drop down list of pages under that section? .. is this possible in silverstripe and where should I look to add the code to do this.

    Also taking it a stage further.. is it possible to have navigation that is graphical buttons and then when they rollover it just drops down a list of the pages under that section as text BUT its pulled from the page tree in silverstripe so if they add a page it automatically updates the drop downs?

  • Aram
    Community Member
    598 Posts

    Re: Drop Down menus in silverstripe Link to this post

    Hi dreamstudio

    This is perfectly possible, you just need to create the correct HTML structure in your template in very much the same way as you do with the regular menu.

    I don't have a dropdown example at hand but I would recommend you first get it working as a static page and then just use <% control menu(2) %> or similar to build it dynamically.

    Hope that helps, if you have a particular example you would like me to help with just post it

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.