Active
Project:
Site map
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 May 2009 at 22:19 UTC
Updated:
19 Mar 2010 at 18:42 UTC
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
Comment #1
harking commentedLooks 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.
Comment #2
frjo commentedI 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.
Comment #3
dieter commentedsubscribing
Comment #4
transformative commentedI'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:
(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.)
Comment #5
flaviovs commentedThe 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.jsinside your$(document).readyfunction:(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.)