I have several custom menus that link to Pages in my Drupal 7 site. One custom menu is called Announcements. When I visit a Page that is linked in the Announcements menu, I would like to display in the sidebar the other links that are in the Announcements menu. I don't want to have to create a menu block for Announcements and manually maintain a list of nodes on which to show the menu block, to make it show only on the Announcements pages. How can I dynamically list links from the custom menu that links to the current page?
It would also be nice if...
I have a page called News Archives on which a menu block is displayed for the Announcements menu as well as some other menus. It would be nice to have a custom breadcrumb for any Page linked in the Announcements menu like 'Home > News Archives > [the current page]'. I have the Custom Breadcrumbs module installed, if someone can think of a way to use this for this purpose.
The Pages in a given menu don't have any pattern to their URL, or hierarchy. Many of them are just off the root site, e.g.,
http://mysite.com/page_linked_in_announcements_menu
. Is there any way to dynamically change a Page's URL alias to reflect which custom menu it belongs to? So on the edit page for a Page, the URL alias might be "blah", but it's linked in the Announcements menu, so I can access it at/announcements/blah
. Then if I moved "blah" to My Other Custom Menu, its URL would automatically become/my-other-custom-menu/blah
, without me having to edit the URL alias by hand.
This is a cross-post from Stack Overflow because I didn't know how to port the question over.