[drupal-devel] [feature] Include top-level parent on book navigation block

puregin drupal-devel at drupal.org
Tue Apr 19 16:55:00 UTC 2005


Issue status update for http://drupal.org/node/20831

 Project:      Drupal
 Version:      4.6.0
 Component:    book.module
 Category:     feature requests
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  clydefrog
 Updated by:   puregin
 Status:       patch

clydefrog, your patch breaks the default behaviour of book.module,
which is to allow multiple independent books.


In other words, there is - by design - no unique 'top-level book page'.


You probably want to create a book page to be a parent for all of your
existing pages; this will let you navigate via the book module block as
you desire.




puregin



Previous comments:
------------------------------------------------------------------------

April 18, 2005 - 21:51 : clydefrog

This is a patch to include the top-level book page in the book
navigation block. I think this makes the navigation block a lot more
useful. Before this patch, all pages in the book were included in the
block except for the root level page, so it was difficult to get back
to the root level.


I don't know if this is the best way to do it, but it works and affects
only book_tree() and book_block().




------------------------------------------------------------------------

April 18, 2005 - 21:53 : clydefrog

Attachment: http://drupal.org/files/issues/book.module_0.patch (1.38 KB)

Sorry... Here's the patch.







More information about the drupal-devel mailing list