Jump to:

23361 Posts in 18124 Topics by 2862 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: 1101 Views
  • astueckroth
    Avatar
    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

    Home
    |
    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,
    Andy

  • Sam
    Avatar
    Administrator
    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.

    1101 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.