My site has a structure like this:
- Primary Link 1
- secondary link 1-1
- secondary link 1-2
- ...
- Primary Link 2
- secondary link 2-1
- secondary link 2-2
- ...
- ...
Primary and secondary links are set to use the same menu, so that the secondary menus change depending on what primary link is clicked. Everything fine so far.
But, what if the user visits a page which is outside the menu hierarchy? For example, if he clicks on a term right below a node title, or a tracker page, or a search result page? The secondary links disappear. I understand the logics of this behavior for most sites, as these pages are not part of any primary section.
But my site has very well delimited sections, almost separate sites, which are defined in the Primary Links (not completely separate sites, because they share same user base and part of same resources). The Secondary Links act as if they were 'primary links' of each section. So I'd like to have them always showing.
Is there a way to get that?
If there was a snippet that could 'know' what was the latest secondary links shown and repeat them every time a page outside the menu hierarchy is requested, that would be great.
But if this is too difficult, I would be glad if there was a way to select secondary links to display based on taxonomy. That wouldn't solve the lack of Secondary Links on all pages, but at least most of the lists of nodes baesd on taxonomy would heva them.