Support Center

How to move the Book navigation at the top of the content

Last Updated: May 29, 2014 01:36PM EEST
The Drupal core Book module is creating structured documents. A book is a set of pages tied together in a hierarchical sequence, perhaps with chapters, sections, subsections, and so on. You can use books for manuals, site resource guides, Frequently Asked Questions (FAQs), or whatever you'd like. You can read more here https://drupal.org/documentation/modules/book.

Regarding the Book navigation, if you need to move the navigation block at the top of the default main content, you should edit your node template. Edit your node.tpl.php template into your theme folder and add the following code:

<div class="content"<?php print $content_attributes; ?>>

    <?php print render($content['book_navigation']); ?>

    <?php
    // We hide the comments and links now so that we can render them later.
    hide($content['comments']);
    hide($content['links']);
    print render($content);
    ?>
</div>

In case this article leaves any of your questions or concerns unanswered, please feel welcome to email us or post a public question.

​More than (just) Themes
http://www.morethanthemes.com/

Contact Us

support-agent@morethanthemes.com
http://assets1.desk.com/
false
morethanthemes
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete