richa78's picture

Basically add URL's with wildcards for each menu item as sometimes the active trail breaks because of a different URL.

Would be great to disable Home if it's the only breadcrumb too.

Accepted answer

I also think that Menu Trail By Path can be helpful here, I use it most of the times. When it doesn't help (rarely), I add Menu Position to the mix.

Menu Position provides (beyond the content type related rule) several menu position rules, e.g. the "Pages" rule where you can determine content of a certain path to be placed (when viewed) under the parent menu item which fits your need. See an example in the screenshot below:

Most helpful answers

@richa78, thanks for your reply! Maybe it helps to add a second menu position rule to your site. Can you explain how many Menu Position rule(s) are in use on your site, and how they are configured?

Regarding the breadcrumb issue, I'd recommend to file a report including steps to reproduce the problem at https://github.com/backdrop-contrib/menu_position/issues.

Comments

Olafski's picture

Have you had a look at the Menu Position module? It "allows for the creation of rules that will dynamically add the current page into the menu system".

Thanks, the active trail works in menu position module for forum topics but not for forum/* which is a list of forums. It also changes the breadcrumb for forum topics.

Olafski's picture

@richa78, thanks for your reply! Maybe it helps to add a second menu position rule to your site. Can you explain how many Menu Position rule(s) are in use on your site, and how they are configured?

Regarding the breadcrumb issue, I'd recommend to file a report including steps to reproduce the problem at https://github.com/backdrop-contrib/menu_position/issues.

Do you mean a rule using the rule module or coded? Had a look at rules, can't see any conditions/actions for menus. I guess manually adding children works well enough for a forum demo. It doesn't seem possible to keep an active trail for forum url's.

The breadcrumb is possible to hide with block visibility, though I think an admin setting to hide "Home" if it's the only breadcrumb makes sense.

Olafski's picture

No, I mean a menu position rule provided by the Menu position module. You can add more than one such rules, with various conditions. 

I'm not sure what menu position module is for, it adds the content type nodes to specified menu item.

I think menu trail by path module answers this topic.

 

Olafski's picture

I also think that Menu Trail By Path can be helpful here, I use it most of the times. When it doesn't help (rarely), I add Menu Position to the mix.

Menu Position provides (beyond the content type related rule) several menu position rules, e.g. the "Pages" rule where you can determine content of a certain path to be placed (when viewed) under the parent menu item which fits your need. See an example in the screenshot below:

Menu position works well on it's own thanks, got to use my eyes more haha! I searched modules for "URL active", neither module appears.