Hi,

I've been using local menu for quite a while and liking it a lot. For my current project my client requested the parent of the tree to be included into the menu.
For instance a menu like this:

Bicycles
-- ATB
-- BMX
-- Unicycle
Cars
-- Audi
-- BMW
-- Volvo
Planes
-- Airbus
-- Boeing
-- Fokker

With a starting depth of Level #2 and a Rendered depth of All levels local_menu would out put something like:

-- Audi
-- BMW
-- Volvo

And if the block title was not set it would use Cars as the block title. Nice!
But my client wanted a local_menu like this:

Cars
-- Audi
-- BMW
-- Volvo

Reason being that the local_menu was printed quite a bit scrolling down from the primary menu.

I found no way as to do this with the current options so I have written a patch to do so.
It includes a checkbox: 'Include parent as menu item'
Applying this patch does not require changes for current users of the module but just adds an extra setup option for those who would like to use this feature.

Hopefully you will see the benefits of this patch and commit.

Cheers

CommentFileSizeAuthor
local_menu.module.patch1.76 KBbartezz

Comments

michellezeedru’s picture

Thank you for this patch - exactly what I needed, and worked perfectly! Proposing this patch be committed.

bartezz’s picture

Good to see it helped! Did you encounter any bugs or anything, otherwhise we can change the status to reviewed and tested...

Cheers

jyg’s picture

I came across this issue looking for a way to make the block title a link to the menu parent (instead of including the menu parent in the localized menu itself). I create a patch to do this here: http://drupal.org/node/974746

jyg