Closed (fixed)
Project:
Site map
Version:
6.x-2.1
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2010 at 08:22 UTC
Updated:
16 Sep 2010 at 18:50 UTC
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
Comment #1
luti commentedI'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...
Comment #2
frjo commentedI believe this is fixed in 6--2-dev, please reopen if that is not the case.