Active
Project:
Menu site map
Version:
6.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2010 at 14:34 UTC
Updated:
3 Aug 2012 at 06:25 UTC
I have Site_map 6.x-2.1 installed, and have installed the beta4 version of Menu Site Map. I've tried using both the default and the nested list display style in admin/settings/sitemap/menu_sitemap. My output is the same -- for example, in a menu called About Us, instead of:
Our Mission
People
etc
It displays:
etc
(without the "About Us" at all)
Thanks for any help,
AD
Comments
Comment #1
brankoc commentedI can confirm this.
The menu_site_map_site_map() does load the menu data, but doesn't do anything with it.
It would be fairly simple to pass the menu title (and slug, and description) to the theming function for a menu tree, and should not break existing code. Just replace:
$output .= theme('menu_site_map_menu', $menu_tree, $max_depth);in the menu_site_map_site_map() function by:
$output .= theme('menu_site_map_menu', $menu_tree, $max_depth, $menu);The start of the theming function could then become:
This way at least those of us who speak a little PHP can access the menu titles.
Comment #2
brankoc commentedExample of how this could work: http://www.szosjaal.nl/sitemap .
(Perhaps not a very good example, but the customer wanted a fold-out sitemap here. Note that two of the headings have had display:none applied to them in the stylesheet.)
Comment #3
najibx commentedThanks brankoc, but I am getting blank sitemap page trying above. I did replace kennisportal_ with my theme name.
I believe this is standard request as, we want to group all menu, rather giving a long list. The nested, only works if the menu have second child.
Comment #4
brankoc commentedRe: function name, you're right, I have fixed my sample code to now start with 'theme_'.
As for the function not working, I hope you noticed that I only posted the start of the function I was replacing.