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.
How can I insert book navigation? I can't seem to locate a solution that works.
Comments
Comment #1
tonticologo CreditAttribution: tonticologo commentedI've tried
$node->content['body']['#value']
but only typed in by user content is shown, no navigational divs. Sad, it'd be nice to have contemplates and book working together.
Comment #2
gantenx CreditAttribution: gantenx commentedI have experienced the same problem. I want to assign template to node fields only, but I have to write the book navigation in it too, or the book navigation won't be shown.
By default, node's content is compilation of it's child elements. Book navigation is one of them. This makes me free to changed template, but also makes contemplate not flexible. So, I write a little hack to display my new template:
This will works for other child elements such as fivestar rating.