Hi,
If I don't want books showed in sitemap, I uncheck books in admin/settings/sitemap,
BUT when I access sitemap page, it shows two rows i don't want:

row1: Books
row2: Books at

Is it possibile remove them ?

thanx,
Cesare

Comments

luti’s picture

I've replaced a line 236:
if (module_exists('book') && ($nids = variable_get('site_map_show_books', array()))) {

with:
if (module_exists('book') && (array_sum($nids = variable_get('site_map_show_books', array())) > 0)) {

to resolve this annoyance (I believe it is even a bug, as I don't see a reason why to display a title for no content; or, it should at least be optional...).

It is also quite strange that $nids array items contain 0 if unchecked, and $nid if checked (as $nid is already a key value). According to some common logic, 0 / 1 (FALSE / TRUE) would be expected...

frjo’s picture

Status: Active » Fixed

I believe this is fixed in 6--2-dev, please reopen if that is not the case.

Status: Fixed » Closed (fixed)

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