The module builds on top of the Sitemap XML module with fixed bugs, updated and extended functionality. The new module is more flexible and exposes many settings via content vs configuration, allowing content editors more control over generating pages.
The module includes the following new features:
- Shared content support
- Custom MVC rendering for displaying a sitemap on a page
- Content controlled sitemap settings
- Page sitemap base template (inherited by page templates and adds sitemap-related meta fields)
Original Sitemap XML features retained:
- Multisite support
- robots.txt file generation and updates
- Physical XML sitemap file generation
- /sitemap.xml dynamic handler
- Auto sitemap submission to search engines on publish
Using the Source - Publish the project directly into the \Website folder of the Sitecore instance and Deploy the TDS Master and Core project content.
Using the Module -
- Download the Ultimate Sitemap XML module from Sitecore Marketplace
- Install the module using the Sitecore Installation Wizard.
- Install the package using the Update Installation Wizard (/sitecore/admin/updateinstallationwizard.aspx)
- Open the SitemapXML.config under the App_Config\Include folder. In the SitemapXML.config file you can specify the following: ○ productionEnvironment - (true or false) determines whether the sitemap should be submitted to the search engines or not ○ Database - the database from which to pull items for generating the sitemap ○ sitemapConfigurationItemPath - root path for the sitemap module configuration settings ○ xmlnsTpl - sitemap module schema used for the XML sitemap ○ generateRobotsFile - (true or false) defines whether a robots.txt file should be auto-generated with references to sitemap files or not.
The following are the default values:
<sitemapVariables>
<sitemapVariable name="xmlnsTpl" value="http://www.sitemaps.org/schemas/sitemap/0.9" />
<sitemapVariable name="database" value="master" />
<sitemapVariable name="sitemapConfigurationItemPath" value="/sitecore/system/Modules/Sitemap XML/" />
<sitemapVariable name="productionEnvironment" value="false" />
<sitemapVariable name="generateRobotsFile" value="true" />
</sitemapVariables>
-
Open the Sitecore Content Editor.
-
Navigate to /sitecore/content/System/modules/Sitemap XML/.
-
Create a Sitemap Configuration item and name it with the same name as the website name attribute in the definition for your website (Non-case sensitive).
This item will contain all of the website-specific configuration used by the module.
-
Set which search engines will be used for submitting the XML Sitemap in the Search Engines field(you can add your own search engine by adding the new “Sitemap Search engine” item under the Sitemap XML Search Engines folder and specifying the “Sitemap Submission Url” path.
-
In the Configuration section of the Sitemap configuration item you can set the following: a. Search Engines - select the search engine to submit the sitemap to b. Enabled Templates - templates to be included in the sitemap c. Excluded Items - individual items to be excluded from the sitemap d. File Name - the name of the sitemap XML file file which will be saved in the root Website directory e. Server Url - the server URL to be used in the sitemap URLs. The module falls back to using the server URL which was used to request the sitemap.
-
To include shared content in the sitemap add a Shared Content Definition item under the Sitemap Configuration item for the website in question and specify the Parent Item (parent content item) and Content Location (the parent item for the shared content).
-
Sitemap will be generated and submitted after publishing (if productionEnvironment setting is set to true). Also you can submit sitemap manually. Run the Sitemap Manager application (sitecore menu/all programs/sitemap manager) and click “Refresh sitemap” button.