Do not include links to terms without associations to nodes

buglen - July 17, 2009 - 00:27
Project:XML sitemap
Version:6.x-1.x-dev
Component:xmlsitemap_taxonomy.module
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Issue tags:release 6.x-1.1
Description

When the sitemap is created all term nodes are added by default, even those that have no content associated. While the individual terms can be "turned off" in the term edit page, an option to skip all empty terms would be useful to keep the default "There are currently no posts in this category" pages from being indexed by the search engine.

Thank you for considering this request.

#1

kiamlaluno - July 17, 2009 - 01:25
Title:Option to skip empty terms» Option to skip terms not associated with any nodes
Component:xmlsitemap.module» xmlsitemap_taxonomy.module

#2

earnie - July 17, 2009 - 12:24
Version:6.x-1.0-rc1» 6.x-1.x-dev
Status:active» postponed

#3

earnie - August 24, 2009 - 14:29
Title:Option to skip terms not associated with any nodes» Do not include links to terms without associations to nodes
Priority:minor» normal
Status:postponed» active

I think it makes more sense to never add empty term page links rather than making in an option. What do others think?

#4

kiamlaluno - August 24, 2009 - 16:48

I agree; more than optional, it should be something the module always does.

Google will keep the link to the taxonomy term page, even if the link doesn't appear anymore in the sitemap. I am not sure if other search engines do the same; if this would be the case, then not adding links to taxonomy term pages when there are not nodes associated with the term would be something completely useless.

#5

malc_b - November 28, 2009 - 16:45

I also agree. I've a taxonomy with countries of which only 3 are used. That a huge number of blank pages in the sitemap. However, manually setting the 3 is not that easy the 3 have lots of child terms so it would be a lot of manual setting.

Also, what about this module getting the latest node lastmod for the term and using that as the term lastmod?

 
 

Drupal is a registered trademark of Dries Buytaert.