menu tree does not use UL class=tree
hass - January 3, 2008 - 23:07
| Project: | Site map |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Since D6 the menu tree i no more using class=tree. Please add this back... now it's "class=menu" and this causes some CSS inheritance and by this way troubles... :-(

#1
Please clarify, or better yet make a patch :-).
#2
In D5 the site_map module have created the sitemap tree with
<ul class="tree">. Now in D6 it is generated with "class=menu" and this produce some troubles with normal Navigation. If Navigation looks *very* different to the site map tree, it is difficult to style this tree with CSS. I could write ~50 class overwrites or better we add the "tree" class back.See http://www.yaml-fuer-drupal.de/sitemap as an example. The left Navigation is very different from the site map tree. With the current site_map D6 version the sitemap tree looks like the left Navigation menu, but should look like the old version.
#3
@ hass
I am playing with the sitemap module and looking and I have seen the sitemap at http://www.yaml-fuer-drupal.de/sitemap
There's a chance to know how were you able to show all the sitemap menus open (showing all their branches) even if they are closed in the menu?
To be more clear, your navigation menu is:
Template (closed, no children shown)
Tutorial (closed, no children shown)
while your sitemap looks like:
# Template Einführung
* Qualität
* Entwicklung
* Webserver
.....
# Tutorials
* Drupal Bugs
* Modul - Node Style
* Modul - Panels
......
How is this possible if the expanded property is set to 0 ?
Thanks
poehnix
#4
It's function theme_menu_tree() that sets this class and it's called from menu_tree_output(), the function site_map use to build the tree.
You can change the class via the theme function but that would change it for all menus.
I believe the best way is to add your own css that change only the site map page. Something like:
.site-map ul.menu {
[whateverneedstobedone]
}
.site-map ul.menu li {
[whateverneedstobedone]
}