Constellation is a collection of utilities for .NET CMS implementers.

The Foundation.SitemapXml namespace contains Http Handlers which intercept the request before it hits Sitecore.

Robots.TXT Handler:

Returns a basic document that either allows or disallows all agents. The document also includes basic disallows for /sitecore urls to prevent the login page
from being indexed. Additional global disallows or site specific disallows can be added through the supplied configuration file. See instructions
within the config file.

Sitemap.XML Handler:

Returns an on-the-fly document (there are cache options available) for each configured Site in your installation. The document is created by having one or more
"crawlers" inspect the Content Tree generating the necessary Item facts and URLs required to produce the Sitemap. You can specify a set of default crawlers
for your installation, as well as override the crawler list on a site-by-site basis. There are also provisions for excluding sites from returning a sitemap.xml
document if it is not appropriate.

Default Functionality:

The system will function on a basic level "out of the box". There is a default Content Tree crawler that will start at the root of the current Site and include Items
that have presentation details. The crawlers operate in the extranet\anonymous role and thus security can be used to "hide" Items or branches from the crawler.

Crawler output has extensive support for "validating" whether an Item should be included in the sitemap or not. Facts available through the API include:

- Does the Item have presentation?
- Does the Item have explicit rules to prevent Search Indexing?
- Does the Item represent a "Page"?

It is up to the developer to supply meaningful decisions behind these facts, but answering "no" to any of them will result in the Item not being included.

Installation Warning:

Your web.config must have a system.webServer/handlers section, and that section must have at least one handler in it (an "add" element) in order
to install this package successfully. If you're using the default Sitecore web.config this won't be an issue. The handlers provided in this package must be
inserted at the top of the stack of handlers.

Configured for use with Sitecore 9.0.X
Requires Sitecore 9.0 NuGet packages, available here:

There is a newer version of this package available.
See the version list below for details.
Install-Package Constellation.Foundation.SitemapXml -Version
dotnet add package Constellation.Foundation.SitemapXml --version
<PackageReference Include="Constellation.Foundation.SitemapXml" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Constellation.Foundation.SitemapXml --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Promoted from Feature to Foundation to allow for more specific example implementations in the Constellation namespace.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated 109 2/18/2020 39 2/18/2020 142 1/13/2020 65 1/9/2020 124 8/26/2019 156 5/30/2019 104 5/29/2019 114 4/29/2019 148 4/11/2019 141 3/6/2019 222 12/7/2018 145 12/7/2018 164 10/25/2018 171 10/21/2018 242 8/14/2018 287 7/18/2018 256 7/17/2018 252 7/17/2018 300 6/24/2018
Show less