I believe this qualifies as a bug: when no books are selected on the sitemap config page:


I would think then that part of the sitemap should be hidden, otherwise it's a useless section (since there is nothing linked to), but currently it shows:


Our themer Alberto is planning to write a patch for this when he has a chance, but if this is not really a bug and the patch would be useless, do let me know. ;)

#2 hide_book_section.patch665 bytesaltrugon
Members fund testing for the Drupal project. Drupal Association Learn more


dwadson’s picture

You can temporarily hide it with CSS:

.site-map-books {
  display: none;
altrugon’s picture

Status: Active » Needs review
665 bytes

Here is the patch for this issue.

@dwadson: that is only a half solution. If the client decides later to display a book then you have to go back to your css and undo it.

frayber’s picture

Status: Needs review » Reviewed & tested by the community

#2 tested with books enabled and all disabled and it worked! Good for me...it works

atodorov’s picture

can we get this patch applied into the next release please?

arianek’s picture


frjo’s picture

Version: 6.x-2.1 » 6.x-2.x-dev
Status: Reviewed & tested by the community » Fixed

A fix for this is already in 6-2-dev. Will make a new release shortly.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.