Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm not able to keep this block visible on Forum pages.
1. I created a forum, and made it a secondary navigation item.
2. I created a menu block (as I've done many a time) for secondary navigation.
3. Menu block shows when you nav, as you would expect, except....
4. When I go to that Forum page, the menu block disappears
I tried creating a menu block specifically for the forum/*, but that doesn't appear, either.
Any help / tips / pointers? Thanks!
TC
Comment | File | Size | Author |
---|---|---|---|
#8 | 362798-8.patch | 2.07 KB | JohnAlbin |
Comments
Comment #1
JustMagicMaria CreditAttribution: JustMagicMaria commentedThis is similar to this issue with FAQ pages:
http://drupal.org/node/344513
Apparently, the /forum and /forum/* pages do not get added to the active path.
You can use the Menu Trails contributed module to fix it if your Forums all appear under the same branch of the menu tree as it seems yours do.
Mine do not. I have a menu tree that looks like this:
Home
Product 1
Forums
Product 2
Forums
Product 3
Forums
I worked around this by configuring separate menu blocks for the Forums pages that are configured to have a "Parent item" that is the second-level menu item that my forums appear under (Product 1, Product 2...) I configured the block to display on my forum pages using the "Page specific visibility settings", "Show block on specific pages:", "Show only on the listed pages". This makes the menu appear but the active trail to the page is not highlighted and the "expanded" attribute of the individual menu items is ignored (you can only choose via MB to either expand none or expand all). Very annoying!
I am not sure if this can be "fixed" in MB (as a special case?) or if it needs to be fixed in the core Forum module. I actually did submit an Issue to the Drupal project queue.
Maria
Comment #2
ifbyphone1 CreditAttribution: ifbyphone1 commentedThanks, Maria, for your reply -- that sounds like a good approach.
We ultimately just created a custom block that contained links and styled it with css. Painful, but done!
TC
Comment #3
ressa CreditAttribution: ressa commentedYeah, me too. I created a custom block and only displayed it on the path faq.
Comment #4
kompressaur CreditAttribution: kompressaur commentedIve had the same problem. I had to resort to DHTML Menu as a workaround.
Comment #5
kompressaur CreditAttribution: kompressaur commentedactually it still doesnt follow the active menu trail in forums themmselves so it hasnt really fixed it for me. soz
Comment #6
praxonline CreditAttribution: praxonline commentedThis sounds to be a core issue. Can someone please take this to appropriate place and get a resolution. I also tried the most simplified method of including sub navigations but failed. See below:
Comment #7
JohnAlbinHere's the core issue I've been working with for… well, a long time: #520106: Allow setting the active menu trail for dynamically-generated menu paths.
Comment #8
JohnAlbinI'm working on backporting the proposed D7 menu_tree_get_path()/menu_tree_set_path() to menu_block for D6. Here's an untested patch.
Comment #9
Dave ReidComment #10
JohnAlbin