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

CommentFileSizeAuthor
#8 362798-8.patch2.07 KBJohnAlbin
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JustMagicMaria’s picture

This 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

ifbyphone1’s picture

Thanks, 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

ressa’s picture

Yeah, me too. I created a custom block and only displayed it on the path faq.

kompressaur’s picture

Ive had the same problem. I had to resort to DHTML Menu as a workaround.

kompressaur’s picture

actually it still doesnt follow the active menu trail in forums themmselves so it hasnt really fixed it for me. soz

praxonline’s picture

Category: support » bug
Priority: Normal » Critical

This 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:


$menus = menu_tree_page_data('primary-links');

foreach($menus as $menu) {
    if(!empty($menu['link']['in_active_trail']))
        echo menu_tree_output($menu['below']);
}

JohnAlbin’s picture

Here'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.

JohnAlbin’s picture

FileSize
2.07 KB

I'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.

Dave Reid’s picture

Priority: Critical » Normal
Issue summary: View changes
JohnAlbin’s picture

Status: Active » Closed (won't fix)