Is there any way to add the description of a menu item below the item itself?
I notice that the description is stored in the attributes column for the menu which would make it more difficult to extract, maybe one of the drupal menu functions has this ability already.
This could then display a menu similar to the admin/content page where the description is shown below the menu item.
Any ideas? I could probably work a patch myself but could do with some input first.
Cheers
Comments
Comment #1
yurtboy commentedIt needs work but I put this
Into the module folder as a folder called menudesc and a file called menudesc.module
Then
make this in that folder as a file called menudesc.info
And you should now have a block you can turn on to do this once you turn on the menu.
But there are some hardcoded items.
1. line 26 menu-mainmenu this menu names needs to match the module you want.
2. line 35 title could be driven from #1 and the query.
Comment #2
munkiepus commentedThanks for that work,
Was looking to add this into the local menu module so that i could use the Starting depth and Rendered depth. Exactly the same way ad the localmenu module does.
As far as i can see there are only 2 selects in the localmenu.module, one which takes {menu_custom} which is no use.
One which uses and one which uses "SELECT mlid FROM {menu_links}". I was wondering if the menu description could be added into the could be added to the $items[] array in there using $data->options from that {menu_links} select.
I'm not really sure where the main module gets the title and router_path link_title from the menu_links table, any ideas?
Thanks
Comment #3
bassplaya commentedthis would definitely be a great feature !
Comment #4
marciomr commentedI would appreciate this feature also.