1

I am building a site with main-menu at header and side-bar-menu. For each main-menu entry there will be some sub-menus. And same sub-menu will be displayed into side-bar-menu according to the portal we are in. Is it any way (or module) to synchronized main-menu->sub-menu and side-bar-menu so that in case we need to change menu, we can change it in one place and reflects in main-menu and side-bar-menu.

Thank you.

2 Answers 2

2

Your main menu can be 1 level deeps links to content. You just maintain these links as your top level content links as needed in the Menu configuration page.

For each main-menu item, make a new Menu where you actually set the link from your node edit pages.

Use MenuBlock and like the Context module (or just default the Block UI, eww) set each sidebar menublock to appear for the appropriate main-menu url path.

-- OR TRY --

You can try to make main-menu your site tree of all links, then use 1 menu-block set to 2-level deep starting point based on the url path.

I usually try to do the 2nd option .... then find its inflexible at some point and need a collection of menus and menu_blocks as I first described which from experience works better. Especially for cross-linked content (you may get the wrong menu block in the 2nd approach, for cross linked content as it shows the first menublock that menu_block finds the link within).

0
1

You want the Taxonomy menu module to do this. Here is a quote about it (from the module's project page):

Transforms your taxonomy vocabularies into menus with ease!

Features:

  • Custom Menu per vocabulary
  • Uses the default taxonomy term path or custom paths
  • Integrate with Views
  • Integrate with Pathauto: use URL/path aliases
  • Does not interfere with other menu modules
6
  • Thank you. But can I use link path in taxonomy_menu instead of just taxonomy term link?
    – cissharp
    Commented Dec 7, 2012 at 16:55
  • Not sure what you mean, but you can integrate the 'path auto' module.
    – Alex Gill
    Commented Dec 7, 2012 at 17:08
  • I mean can I create a link using taxonomy term which points to the actual node but not the link like '/term/1' which contains the list of items containing that term.
    – cissharp
    Commented Dec 7, 2012 at 17:15
  • Ofcourse, thats what 'path auto' does. Just the same as using path auto on nodes so instead of 'node/123' you would get 'your_page' as the link.
    – Alex Gill
    Commented Dec 7, 2012 at 17:16
  • Thank you Alex. I am still not clear. I know path-auto can do that. I want to link another page (the page created using panels or views) so that instead of displaying related nodes of that term it displays the actual panel/view node. Is it possible to do so in taxonomy_menu.
    – cissharp
    Commented Dec 7, 2012 at 17:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.