Sitemap XML

  0 rating
4/24/2013 1:10:21 AM
4/17/2015 1:39:08 PM
Source: GitHub
Provider: Sitecore


Creates a sitemap that is compliant with the schema defined on for you site by a click of a button and submits it to search engines. 


  • Documentation > How to use the Sitemap XML
    How to use the Sitemap XML

      1.  Install the package.
      2.  Perform a site publish.
      3.  Open the SitemapXML.config under the App_Config\Include folder. In the SitemapXML.config file you can specify the following:

            How the file with XML will be named
            The Sitemap root path.
            The Database that will be used for the sitemap generation.
            Where the sitemap configuration item will be stored.

            Remember to specify the siteRootPath variable.

             <sitemapVariable name="fileName" value="sitemap.xml" />
             <sitemapVariable name="xmlnsTpl" value="" />
             <sitemapVariable name="siteRootPath" value="/sitecore/content/home" />
             <sitemapVariable name="database" value="web" />
             <sitemapVariable name="sitemapConfigurationItemPath" value="/sitecore/system/Modules/Sitemap XML/Sitemap configuration" />

    Version 2

            In version 2, it supports having multiple sites, so the config file now looks like this


          <sitemapVariable name="xmlnsTpl" value="" />
          <sitemapVariable name="database" value="web" />
          <sitemapVariable name="sitemapConfigurationItemPath" value="/sitecore/system/Modules/Sitemap XML/Sitemap configuration" />
          <sitemapVariable name="productionEnvironment" value="false" />
          serverUrl: (optional) will be used to generate url in sitemap file.
          If serverUrl left blank, the hostname value set in web.config file for each site will be used.
          Example: serverUrl="www.
          name: this is the sitename which is defined in <site> element in sitecore web.config file.
          filename: the xml sitemap file name. This file name will be inserted into robots.txt file.
            <site name="website_1" filename="sitemap1.xml" serverUrl="" />
            <site name="website_2" filename="sitemap2.xml" serverUrl=""/>

            So now instead of pointing to the site root path you now use the site names found in the web.config.

       4. Open the Sitecore backend.
            Open the Content Editor and navigate to /sitecore/content/System/modules/Sitemap manager/Sitemap configuration item.

    sitemap configuration

    This item provides the ability to set which search engines will be used. SitemapXml module contains three predefined search engines (Google, Live search, Yahoo). You can add your own search engine by adding the new “Sitemap search engine” item and specifying “HttpRequestString”.

      5.  In the Configuration section of the Sitemap configuration item you can set which templates that you want the sitemap to contain and which ones that shouldn't be indexed.

    Include items
    included templates

    Exclude items
    excluded templates

      6. Sitemap will be generated and submitted after publishing. Also you can submit sitemap manual. Run the Sitemap Manager application (sitecore menu/all programs/sitemap manager) and click “Refresh sitemap” button.

    sitemap launcher

Release notes
The module was added 24/08-2009
Read more Back
Code examples

Solution screenshots(0)


Reviews (0)

Sort by: Date Most votes
  • Profile Avatar

    Level: 0

    x0 x0 x0




    Was this helpful?


Comments (0)

Sort by: Date  Most votes

Leave a Comment

Comment must be field in
Post comment

Write a review

Title can't be empty
Review can't be empty
Post review


Title Description Download Action

Add File