22976 Posts in 11702 Topics by 2826 members
|Go to End|
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
Video and Lighting
for a working (non-SS) Version of what I'm looking for the current site is http://www.paentertainmentgroup.com
7 January 2009 at 9:10am
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.
|Go to Top|