21489 Posts in 5783 Topics by 2622 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 999 Views |
-
Navigation Issue

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 3DJ Services
Link 1
Link 2
Link 3Video and Lighting
Link 1
Link 2
Link 3for a working (non-SS) Version of what I'm looking for the current site is http://www.paentertainmentgroup.com
Thank You,
Andy -
Re: Navigation Issue

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.
| 999 Views | ||
|
Page:
1
|
Go to Top |


