Expand book entries using CSS and DHTML Menu
Chajecki - May 19, 2009 - 22:19
| Project: | Site map |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I marked option "Show books expanded" and set "categories dept" to "all" in module settings but from some reasons the list of books is still not expanded. I even look at the code and found that variable site_map_books_expanded is not even used in the site_map.module anymore.
Is it a feature that you dropped (it was working in D5) or are you going to add it soon?
or am I doing anything wrong?
I would appreciate any response.

#1
Looks like in 1.1 release frjo commented out this setting since it was not used anywhere else in the module. Since he just commented it out, I guess that it might be added back in the future.
#2
I commented it out sine it not used in D6 just as harking mentioned. Can't remember why at the moment but I guess I had problems with implementing it under D6.
If anyone has a solution please submit a patch.
#3
subscribing
#4
I'm using the DHTML Menu module for my book menu structure. It automatically loads all of the levels of the book, but then allows them to be expanded or collapsed. (Double-clicking on the expandable links allows you to go to the link. I include instructions at the top of the site map, to this effect, for users.).
With DHTML Menu enabled, if I then want all of the links to be expanded by default , then I add the following code to my CSS:
#site-map .sitemap-book ul.menu{display:block;
}
(I have also experimented with JQuery menu module -- combined with the Advanced Book Blocks module -- to do the same thing as DHTML Menu without the need to double-click. I don't know whether these alternative modules would work similarly in this scenario, or not, but it might be worth a try if you don't like the double-click behaviour of DHTML Menu.)