I'm currently working on a site where there is the same menu item under categories. Both these items are the same link, but it "really" belongs to only one category.

For example:

Company
- Press Releases (knowledge/press-releases)
Knowledge
- Press Releases (knowledge/press-releases)

Press Releases is listed in both Company and Knowledge, but belongs to knowledge as defined by its link. When the press release page is displayed, the company menu section is displayed. I would to be able to have the knowledge section display instead. Is something like this easy to do?

Thanks!

Comments

David Lesieur’s picture

Umm, never tested this with Menu Trim... My guess is that the menu that gets displayed is the one with the smaller id. So your Knowledge item would show up instead if it had a smaller id than Company... In other words, it may work on a "first arrived, first served" basis, but that's just a guess. You could try re-creating the Company menu so it gets a greater id than Knowledge.

If this works, I'll agree it's a kludge. :-)

keylope’s picture

Hi David,

Thanks for the information... That seems to be the case. I created a new dummy company menu item (company2) with a sub item named press releases and with the same link. When I went to the knowledge page, knowledge showed up. Thankfully, I don't have multiple items like this or else I wouldn't be able to use this great module. Hopefully this can get fixed, but at least I've got a workaround for now!

Thanks for your help!
Greg.

DynV’s picture

Assigned: Unassigned » DynV
Status: Active » Closed (works as designed)

Hey keylope ! Unfortunately this module only take care of the standard Drupal menu system. If this module is not compatible to run at the same time as the one you find for this purpose, we'll try to hook with it.

If with this module as well as the default Primary links block is incompatible, please provide us with the project link and, if possible, the appropriate API hooks and we'll try to link with the other module.