By mcrittenden on
I'm on my first big Drupal project (and loving it so far!)
Basically, the site has five sections, and each of those sections has 6 or 7 subpages. What we want is for the user to go to the section and see the local navigation for that section once they're there. What's the best way to do this?
Should I create a new menu for each section, and if so, how do I tell my page template which one it should be using for any given section? Or should all of the pages be in one master menu and I can somehow specify that I only want to display the pages under parent XX for each section? Or is there another better way?
Thanks!
Comments
You can start here:
You can start here: http://drupal.org/node/241980
Awesome
Thanks for the link...that solves it!
- Mike, from Little Blue Labs and Drupal Check
Another issue
So I got it up and running...here's the setup so far. I put the main links to each section landing page in the Primary Links menu, and for each section's list of local links, I created a new menu. Then, those subsection menus become blocks which I only display on the appropriate pages (i.e., the pages within that section).
That works fine...problem is, now that the primary links are separate from the section links, I can't get class="active" to display on a primary link when I'm in that link's section.
Here's what I'm thinking...is there a way to add class="active" to a link whenever the URL starts with something? Each section has it's own URL section, so I could add class="active" to the "About Us" link whenever the url starts with "aboutus/" maybe?
Or, any other way to do it?
- Mike, from Little Blue Labs and Drupal Check
I found a solution. Check out
I found a solution. Check out the Context module.
Did you found another way to do it? Let me know!