Hi,
I am pretty new in drupal and I have this problem.
This is my site scheme:

Custom homepage with links to sections
-Section 1
-- Page a
-- Page b
-Section 2
-- Page c
-- Page d
..

I created custom menu for each section and added pages to them.
The thing i dont know is how to display only menu for section 1 when I am on page a (user will have to go back to homepage to change section). My idea was to add custom tpl.php for each page, but i think thats not very effective.

Thank you, cernuus.

Comments

TrinitySEM’s picture

You won't need to touch tpl.php files. Just add two menus (section 1 and section 2) and when you enable and position the blocks for each of those you will be able to define the pages the menus will show on. See the "show block on specific pages" section within the block and you will see a section "Show on only the listed pages". Define the pages you want the menus to appear on.

that's the simple approach.

To automate things: If each of the sections will be large then you could create a content type for each section and define the URLs in PathAuto for those content types. You can then specify a wildcard URL and any nodes within that section will include the menu.