Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Navigation Issue


Go to End


2 Posts   2002 Views

Avatar
astueckroth

Community Member, 1 Post

6 January 2009 at 5:34pm

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

Avatar
Sam

Administrator, 690 Posts

7 January 2009 at 9:10am

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.