Currently Display Suite hijacks the book navigation field and uses the book navigation block to return the output.
The block module provides separate theming functions, templates and preprocesses for a book navigation inside a node and book navigation inside a block, these are:
book-all-books-block.tpl.php
For displaying navigation in a block, renders only the table of contents, and uses Render API.
book-navigation.tpl.php
For displaying within a node, prints the table of contents and a book pager with next, previous and top level links.
So Display Suite breaks sites that rely on the book module because the next, previous and top level links are no longer shown on the node page.
Why is this important?
If, for example, http://drupal.org/node/644662 page switched to a display suite layout, the "‹ Devel up Install Display Suite ›" links at the bottom of the page would no longer be shown (and there'd be no clean way of getting them in as the block on the right hand column would have to be overridden as well).
Patch attached that fixes this.
Comment | File | Size | Author |
---|---|---|---|
use_core_book_navigation_theme.patch | 1.06 KB | codesidekick |
Comments
Comment #1
codesidekick CreditAttribution: codesidekick commentedNeed to double check DS configuration on a clean Drupal install - turns out the site I was given was messed with to invoke the book navigation block.
Comment #2
swentel CreditAttribution: swentel commentedNo comments or new updates from others for a while, closing.
Comment #3
webservant316 CreditAttribution: webservant316 commentedContinuing discussion here https://www.drupal.org/node/2752185 since this ticket is closed.