Jump to:

23450 Posts in 18899 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Navigation Issue

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1107 Views
  • astueckroth
    Community Member
    1 Post

    Navigation Issue Link to this post

    I was wondering if there was a way to break up the navigation to something like whats below I know this looks like the default navigation for SS but I want all three links (production, dj, and video and lighting) to be on one page and when you select the link you want it takes you to a page with the links pertaining to that catagory on the left side, while excluding the other main catagories

    Production Services
    Link 1
    Link 2
    Link 3

    DJ Services
    Link 1
    Link 2
    Link 3

    Video and Lighting
    Link 1
    Link 2
    Link 3

    for a working (non-SS) Version of what I'm looking for the current site is http://www.paentertainmentgroup.com

    Thank You,

  • Sam
    679 Posts

    Re: Navigation Issue Link to this post

    Hi astueckroth,

    This isn't too complex to do:

    * Use <% control Menu(1) %> ... <% end_control %> to make the Home, Production, DJ, Video menu
    * Use <% control Menu(2) %> ... <% end_control %> to make the Link 1, Link 2, Link 3.

    These are common SilverStripe controls, but usually you have Menu(1) and Menu(2) on the same page. You're going to want to put them on different pages.

    One way of switching them is to show Menu(1) on top level pages and Menu(2) on all other pages.

    <% if ParentID = 0 %>
    <% control Menu(1) %> ... <% end_control %>
    <% else %>
    <% control Menu(2) %> ... <% end_control %>
    <% end_if %>

    Alternatively, you could just show the Menu(1) one on the homepage. Chances are, the best way to do that would be make a HomePage page type. See the tutorials for creating custom page types.

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.