Closed (works as designed)
Project:
Menu Trim
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
6 Jun 2007 at 17:59 UTC
Updated:
1 Apr 2008 at 15:58 UTC
I haven't had a chance to look at the module's code yet, but I cannot seem to get trimmed menus working on the home page.
I have quite a simple menu structure
┌ Home -> About us
├ Support -> Youth Groups
├ Events
└ Content
On the "Support" page, the "Support" Primary Links (trimmed) menu appears showing the "Youth Groups" link. And when on the "About us" page, the menu also appears fine... but when on the "Home" page with path it does not.
I presume it is to do with the path name. Or just something I have configured wrongly (although I do not see why this would be the case, seeing as I have set it up in the same way as the Support section.
Adam.
Comments
Comment #1
angelic_venus commentedI managed to isolate this down to a specific function in the menu.inc include in the core of Drupal.
The _menu_get_active_trail_in_submenu function uses the $_GET method to grab the $path of the current page, on the home page this is actually the path of whatever page your forum points to (the default is "node", and I have my pointing at a view made page called "home").
Anyways, it turns out menus deal with the path of the front page differently and use the path, but there is nothing to translate t in the _menu_get_active_trail_submenu function.
So I entered, below
this
which checks the $path grabbed from the $_GET global against the front page path in Drupal's config database.
Wow, that was long winded. But it works a treat.
Adam.
Comment #2
dynv commentedThis module is made to replicate menu block, not the navigation block as I think you want.