Taxonomy tagged content section isn't showing on the sitemap
There are frontpage
primary,secondary and navigation menus "sections",book "section" but no taxonomy "section"

By the way italian translation is only partially loaded..... (some strings are translated others arent)

I will try to understand what's going wrong

poehnix

CommentFileSizeAuthor
#2 taxonomy_not_showing-227397.patch990 bytescoltrane

Comments

poehnix’s picture

This query:

$result = db_query('SELECT vid, name, description FROM {vocabulary} WHERE vid IN ('. db_placeholders($vids, 'int') .') ORDER BY weight ASC, name');    

should be

$query = 'SELECT vid, name, description FROM {vocabulary} WHERE vid IN ('. db_placeholders($vids, 'int') .') ORDER BY weight ASC';       
    $result= db_query($query, $vids);

I had just posted this answer but for some reason the post does not show

coltrane’s picture

Status: Active » Needs review
StatusFileSize
new990 bytes

Thanks, that change makes taxonomy show correctly.

Here's poehnix's code in a patch for site_map.module HEAD.

hass’s picture

Why not only adding the missing $vid to the end?

$result = db_query("SELECT vid, name, description FROM {vocabulary} WHERE vid IN (". db_placeholders($vids, 'int') .") ORDER BY weight ASC, name", $vid);
hass’s picture

Status: Needs review » Fixed

This is already fixed in CVS. Not sure if HEAD is in sync with 6.x-1.x and if you have really used HEAD or not.

Status: Fixed » Closed (fixed)

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