Geeklog

XMLSitemap Plugin

The purpose of the XMLSitemap Plugin is to create XML sitemap files as supported by all major search engines. Such a sitemap file is meant for use by search engines to make it easier to find all the content available on your site. Basically, a sitemape.xml file is a list of the URLs of all content pages on your website. For more information, see sitemaps.org. For more information on the different tags available for your XML sitemap see the XML schema for the Sitemap protocol page.

Configuration

The configuration of the XMLSitemap plugin can be changed from the Configuration admin panel:

XMLSitemap Main Settings

Variable Default Value Description
sitemap_file sitemap.xml The file name of a normal XML sitemap file. This file has to be located in the public_html directory (where lib-common.php resides) and be writable from the Web server.
mobile_sitemap_file mobile_sitemap.xml When enabled this is the file name of an XML sitemap file for contents optimized for mobile users. This file has to be located in the public_html directory (where lib-common.php resides) and be writable from the Web server. Note: This should only be used if you should have a separate mobile site. For example, when you have a feature-phone (WAP/WML, etc) version of your site. For an ordinary mobile-friendly web site a mobile sitemap is not needed and may actually cause confusion for the search engines.
include_homepage False If you set this to true, the XMLSitemap plugin will automatically include the homepage into the XML sitemap file (including the mobile sitemap but not the news sitemap file).
types article, calendar, polls, staticpages Types of contents you would like to set in the XML sitemap file(s).
exclude links Types of contents you would like to exclude from the XML sitemap file(s).
lastmod article, calendar, polls, staticpages Content types to include lastmod element (last modification date) in the XML sitemap file(s). Please note that the timezone should be set for your Geeklog site or the lastmod value will contain just the date and no time. Either way it will still support the W3C Datetime format. You will find the timezone setting in the Geeklog configuration under "Language and Locale", on the Locale tab.

Priorities

Variable Default Value Description
priorities 0.5 The priority of some contents relative to other contents. Valid values range from 0.0 (lowest) to 1.0 (highest). This value will be used by search engine crawlers just to decide what URLs you think more important, so specifying 1.0 to all types of contents will be meaningless. 0.5 is the default and means no priority value is display in the sitemap for content set to this value.

Frequencies

Variable Default Value Description
frequencies 'weekly' for staticpages, 'daily' for others The frequency with which some type of contents are likely to be updated. Valid values include 'always', 'hourly', 'daily', 'weekly', 'monthly', 'yearly', and 'never'. This value will be used by search engine crawlers just to decide how often they should check the contents. However, specifying 'always' doesn't mean that search engine crawlers will surely visit your site. So, specifiying 'daily' or 'weekly' would be better in most cases. Specifiying 'hidden' means no frequency is displayed for the content.

Ping

Variable Default Value Description
ping_google True If you set this to true, the XMLSitemap plugin will automatically inform Google crawlers when you update contents. For main Sitemap file only.
ping_bing True If you set this to true, the XMLSitemap plugin will automatically inform Bing crawlers when you update contents. For main Sitemap file only.

News Sitemap

Variable Default Value Description
news_sitemap_file news_sitemap.xml When enabled this is the file name of an XML sitemap file for Google News. A Google News sitemap lets you control which content you submit to Google News. This file has to be located in the public_html directory (where lib-common.php resides) and be writable from the Web server.
news_sitemap_topics (empty) A list of topic ids. Only articles that belong to 1 or more of these topics (either directly or inherited) will be included in the news sitemap. If no topics ids are included then all topics are included.
news_sitemap_age 172800 The maximum age in seconds of the articles to include in the news sitemap. If 0, then age is not a factor. Currently Google News recommends articles with a max age of 2 days (or 172800 seconds).