Does anyone know of a way to hide the list of pages which appears when you open a book? I'd prefer to have the toc showing on the side in it's block (as it does), and simple introductory text on the first page.

Comments

WorldFallz’s picture

i did it with a simple css "display:none"... hacky, but it works.

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

pengi’s picture

Where would I use that? I've only touched drupal css a couple times.

It'd probably apply to all books too. I will add a feature request to the books project so that the page list might be shown or not on a book by book basis. Well, I would if I could find the book project, but it is not at project/book? I know it's not a contributed module, but it must have some home on drupal.org?

WorldFallz’s picture

in the style.css file for your theme, try:

.book-navigation {
  display: none;
}

As for a feature request, goto http://drupal.org/project/issues/search/drupal and select "book.module" in the "Components" dropdown box-- browse through the issues, iirc there might an issue for this already. if not, then you can open a new one.

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

pengi’s picture

Thanks; posted a feature request, I couldn't spot any similiar request.

Anonymous’s picture

in the style.css file for your theme, try:

.book-navigation {
display: none;
}

I tried the above, but it removed the previous/next page links. Instead, find the line

.book-navigation .menu

in your style.css and make sure you have "display:none" within the brackets. It should look like this

.book-navigation .menu {
border-top: none;
padding: 1em 0 0 3em;
display:none;
}

You should also consider putting this in your local.css to keep from overwriting it when you upgrade your theme. That's what I did :-D

Nigelb’s picture

Hi
I think I'm trying to do the same thing I don't want the book information to appear on my pages as I want people to navigate using he menus I have created.) I tried modifying the style.css file in Garland, using notebook, but it didn't seem to have an effect. Any suggestions of what I am doing wrong? (my site is www.localtennisleagues.com).

Thanks everyone,

Nigel

francewhoa’s picture

The following module might be able to do that http://drupal.org/project/book_helper

Loving back your Drupal community result in multiple benefits for you