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.

Comments

harking’s picture

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.

frjo’s picture

Category: bug » feature

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.

dieter’s picture

Version: 6.x-1.x-dev » 6.x-1.2
Category: feature » bug

subscribing

transformative’s picture

Title: Book list not expanded » Expand book entries using CSS and DHTML Menu

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.)

flaviovs’s picture

The CSS trick only partially solves the problem, as when you click on a parent item it will still collapse.

A better workaround is to disable the DHTML using Javascript. Do do this, just put the following code in your script.js inside your $(document).ready function:

$("body.page-sitemap #site-map ul.menu").show();
$("body.page-sitemap #site-map ul.menu li a").unbind("click");

(The code should work for most themes, but you may need to adapt it if your theme use other CSS classes for the page/menu. Also notice that you will unbind all handlers for the click event on menu item anchors, so this, although very unlikely, may have cause undesirable side effects, so test the change carefully.)