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.
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
Comment | File | Size | Author |
---|---|---|---|
#5 | bookblock.1120350.exclude-books.5.patch | 6.32 KB | Ludo.R |
#2 | bookblock.1120350.exclude-books.2.patch | 5.22 KB | Ludo.R |
Comments
Comment #1
mcjim CreditAttribution: mcjim commentedIt 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.
Comment #2
Ludo.RThe 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.
Comment #3
stefan.r CreditAttribution: stefan.r commented/edit: configure and save hooks are missing
Comment #4
stefan.r CreditAttribution: stefan.r commentedComment #5
Ludo.RAdded 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).
Comment #6
stefan.r CreditAttribution: stefan.r commentedI reviewed this along with dolu and this seemed OK.
Comment #7
Ludo.R