Sitemap XML

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

About

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

Documentation

Documentation
  • 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.

    <sitemapVariables>
             <sitemapVariable name="fileName" value="sitemap.xml" />
             <sitemapVariable name="xmlnsTpl" value="http://www.sitemaps.org/schemas/sitemap/0.9" />
             <sitemapVariable name="siteRootPath" value="/sitecore/content/home" />
             <sitemapVariable name="database" value="web" />
             <sitemapVariable name="sitemapConfigurationItemPath" value="/sitecore/system/Modules/Sitemap XML/Sitemap configuration" />
    </sitemapVariables>

    Version 2

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

              <sitemapVariables>

          <sitemapVariable name="xmlnsTpl" value="http://www.sitemaps.org/schemas/sitemap/0.9" />
          <sitemapVariable name="database" value="web" />
          <sitemapVariable name="sitemapConfigurationItemPath" value="/sitecore/system/Modules/Sitemap XML/Sitemap configuration" />
          <sitemapVariable name="productionEnvironment" value="false" />
          <sites>
            <!--
          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="www.site1domain.com" />
            <site name="website_2" filename="sitemap2.xml" serverUrl="www.site2domain.com"/>
          </sites>
        </sitemapVariables>

            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

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

Solution screenshots(0)

Upload

Reviews (0)

Sort by: Date Most votes
  • Profile Avatar
    [fullName]

    Level: 0

    x0 x0 x0

    [date]

    [title]

    [text]

    Was this helpful?

    0

Comments (0)

Sort by: Date  Most votes

Leave a Comment

Comment must be field in
Post comment
loader

Write a review

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

Download

Title Description Download Action

Add File