This module is exactly what I was looking for, for my site! With one difference: I have mutliple books on the site, so don't want to be restricted to using the module with one book only.
So, I attach a patch. It contains the following differences:
- You can use arguments on the URL to decide which book to open and how deep: for example, "booktree/45/5" will display book node 45 and its children to a depth of 5 (if you don't use arguments then it will use the default configuration as now).
- Instead of displaying the module name as the page title, it displays the Book title (top level: in our example, the page title will be the title of node/45).
- It no longer displays the title of the starting node within the page (this didn't seem very useful somehow)
- And I also commented out the first sql statement which didn't seem to serve any useful purpose
Note that this is tested only for 5.1 - if Uccio would like to take this over and incorporate it, that would be great.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | booktree.txt | 4.13 KB | joel_guesclin |
| booktree.patch | 2.57 KB | joel_guesclin |
Comments
Comment #1
joel_guesclin commentedHere is the complete module for those who prefer...
Comment #2
uccio commentedHi Joel,
Your patch appear to be very helpful, i will try it in 5.x and after i commit it on the CVS.
I wont test the permission part of this new version!!
Thanks
Uccio
Ps: I commit it soon as possibile !!
Comment #3
uccio commentedok
Comment #4
(not verified) commented