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.
By Compactman on
So I started a book to use as my faq page for tutorials.. etc..
So that first top level page will show in my main menu of the site and becomes an editable book page.. I would like all the child pages and sub children pages of this book to show on the top level page of the book automatically..
Is tehre some sort of php global command for the book that I can stick in the top level thats like
TOP LEVEL PAGE *browsed to from the menu*
-$phpbookchild
--$phpbooksubchildren
Comments
This snippet is very good for what you want I think
http://drupal.org/node/44648
Look at this page which uses the code example
http://www.orchidsonline.com.au/interactive/node/3097
take close look at setting the below to your requirements
wellsy
orchidsonline.com.au
Category module
Have a look at the category module. This is an alternative to the book module, which combines the features of book and taxonomy, and which is fully backwards-compatible with both. You can also import your existing books into the category module.
One of its sub-modules, category_display, allows you to display a 'TOC' (list of child pages), and to specify the depth of the TOC for each page that it's displayed on. You can set it to an infinite depth if you wish. This is cleaner than using a custom PHP snippet, as it requires no coding on your part - the module takes care of everything.
Jeremy Epstein - GreenAsh
Jeremy Epstein - GreenAsh
Thanks
Thanks for the reply I'll pitch it to the team next meeting.