How would I remove the book navigation at the bottom of the page? Both the next/previous link as well as the list?

I assume I could remove this somewhere in page.tpl.php or style.css

Attached is a screenshot

CommentFileSizeAuthor
nav.JPG21.49 KBbirdmurmur
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

birdmurmur’s picture

The more I investigate the more I can articulate this.

One thing I need help with is figuring out how to remove the leaf nav for book pages in this theme.

Thanks!

danpros’s picture

Hi,

That is simple if you are using Firebug, since this tool will show you the ids or classes for any components.

.book-navigation {
display:none;
}

Dan

danpros’s picture

Status: Active » Closed (fixed)

Hi,

That remove the book navigation. I will close this.

Thanks,
Dan

mcjim’s picture

For those who want to remove the actual markup rather than just hide it, here's a snippet to add to a custom module for your site (Drupal 6):

/**
 * Implementation of hook_nodeapi().
 */
function mymodule_nodeapi(&$node, $op, $teaser, $page) {
  switch ($op) {
    case 'view':
      // Get rid of book navigation for all node-types.
      if isset(($node->content['book_navigation'])) {
        unset($node->content['book_navigation']);
      }
      break;
  }
}
danilocgsilva’s picture

The code snippet doesn't worked. It returns that WSOD when accessing any Drupal page.

In the apache log, it returns the following:

[Fri May 10 10:01:16 2013] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected T_ISSET, expecting '(' in /home/danilo/sites/rdp/sites/default/modules/rededeprojetos/rededeprojetos.module on line 73, referer: http://rdp/node/8619

Didn't found any parentheses, brackets or braces over or less, that's what expected for this kind of error message.

It was a Drupal 6. Copied and pasted and just replaced the mymodule with my module's name (rededeprojetos, as seeing on the error message), to avoid code misspeling.

I just don't tried to run the snippet on a clean Drupal installation. I've just appended this snippet on the end of another custom module.

If someone can swear that is everything ok on the code snippet, so I pledge to test the snippet on a clean Drupal installation and see what will happen.

Thanks on advance!

bulat’s picture

if (isset($node->content['book_navigation'])) {
        unset($node->content['book_navigation']);
   }