Hi There, this may not even be possible so I apologize if I'm out of line. My goal is to show the book ONLY in the new Book module, but not also in the core Book section (block). Is that possible? Aleks

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mcjim’s picture

Assigned: Unassigned » mcjim
Category: support » feature

It might be possible. You're certainly not out of line.

One option could be to provide another block that's similar to the core book block but excludes any books that have have tagged to be excluded in the book block configuration.

Another could be to amend the core book block sql query with hook_db_rewrite_sql().

I might not get a chance for a while, but I'll look into it when I can.

Ludo.R’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Issue summary: View changes
Status: Active » Needs review
FileSize
5.22 KB

The approach has been to provide a customised Book navigation block, so you have to use the new Book main navigation block to see the changes.

Excluding a book from the main book navigation is done through the book block configuration.

stefan.r’s picture

/edit: configure and save hooks are missing

stefan.r’s picture

Status: Needs review » Needs work
Ludo.R’s picture

Status: Needs work » Needs review
FileSize
6.32 KB

Added the display mode configuration to the main navigation block.
This patch replaces the previous one and is against latest dev version (7.x-1.x-dev 2013-Sep-30).

stefan.r’s picture

I reviewed this along with dolu and this seemed OK.

Ludo.R’s picture

Title: Unable to show book only in the Book Block » Provide a way to exclude Book Block enabled books from main Book navigation