Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I just thought it would be nice and it wouldn't require much effort to implement. just a simple tree view of the TOC from a drupal collaborative book page hierarchy,
I honestly don't know if it's present and being just a drupal newbie is what my wondering is all about. so if so please be kind and let me know.
TIA
Comment | File | Size | Author |
---|---|---|---|
#10 | dynbooktoc.tar_.gz | 3.16 KB | natuk |
#7 | book_1.module | 41.58 KB | twohills |
#6 | book_0.module | 41.81 KB | twohills |
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commentedsee #3558
Comment #2
puregin CreditAttribution: puregin commentedI'm marking this as active again, since the other issue referred to was set to 'won't fix'.
I think that there may be some interest in this from the AJAX experts :)
Comment #3
puregin CreditAttribution: puregin commentedOK, this time I really will mark it as active :)
Comment #4
twohills CreditAttribution: twohills commented+1 to that. I'm building a single "omnibus" book across a big chunk of content and it will have about 400 pages. I really need a tree view that is manageable, i.e. where branches can be expanded or collapsed Explorer style.
Comment #5
nedjoThe activemenu component of the Javascript Tools package provides relevant methods and could be adapted for this, http://drupal.org/node/57285.
Comment #6
twohills CreditAttribution: twohills commentedI hacked books.module to give me an expand/collapse ToC. Sorry there are multiple changes in here so i can't be sure to disentangle just the ToC ones but here goes. In book_menu add:
make this change to book_link:
new function:
and replace these three functions:
I think I got it all. As I say there are multiple changes intermingled in this module, so this is not a tested patch, just a helping hand to anyone who wants to write their own mods. Good luck!
Comment #7
twohills CreditAttribution: twohills commentedwish i could edit the previous post :-)
see the attached module for a better version that actually works
Comment #8
Crell CreditAttribution: Crell commentedBook module is now all javascripty. :-)
Comment #9
webchickjavaScripty it may be, but it doesn't actually do this, afaik.
Bumping to 7.x, as it's a new feature.
Comment #10
natukMy dynbooktoc module demonstrated here:
http://www.ligatus.org.uk/glossary/?q=en/dynbooktoc
is something that I have been working on for D5. I have been unable to transfer it to D6 because the D6 version of the book module does not allow more than 9 generations (see here: http://drupal.org/node/274270). However, in the hope that this limitation will be lifted, or with some changes for D7, this might prove useful.
Note the cookies functionality: i.e. if you delve into the hierarchy, navigate away from the page and then come back to it, it will remember which nodes have been opened.
Needless to say that the code needs reviewing...
natuk
Comment #11
bomarmonk CreditAttribution: bomarmonk commentedThis looks good. I would very much like to have this kind of book navigation on my site. It would be great if a TOC could be expanded on each book page, showing the active page and the ordered list of children under the parent book.
Comment #12
BetaTheta CreditAttribution: BetaTheta commentedsubscribing
Comment #13
webchickComment #14
colanDoesn't Advanced Book Blocks do this already?
Comment #15
colanActually, I think we should probably drop the Book module from core entirely, and forget about this issue. Book uses its own custom table. There are now more generic ways of doing this, such as the recipe over at http://drupal.org/node/1176828#comment-4818914. Using that approach, the corresponding issue to this one would be #1048442: Collapsible blocks using Tree View.
Comment #16
jhedstromComment #19
sarmiliboyz CreditAttribution: sarmiliboyz commentedComment #22
andypostNW for summary update
Comment #25
jhedstromClosing as outdated since no updates of any substance have happened in some time.
Comment #26
colanFor the future of the Book module, see #1261130: [PP-1] Rewrite book module to use a standard, reusable API for creating hierarchies.