BlendInteractive.Umbraco.Sitemap 17.0.0

Prefix Reserved
dotnet add package BlendInteractive.Umbraco.Sitemap --version 17.0.0
                    
NuGet\Install-Package BlendInteractive.Umbraco.Sitemap -Version 17.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BlendInteractive.Umbraco.Sitemap" Version="17.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlendInteractive.Umbraco.Sitemap" Version="17.0.0" />
                    
Directory.Packages.props
<PackageReference Include="BlendInteractive.Umbraco.Sitemap" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BlendInteractive.Umbraco.Sitemap --version 17.0.0
                    
#r "nuget: BlendInteractive.Umbraco.Sitemap, 17.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BlendInteractive.Umbraco.Sitemap@17.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BlendInteractive.Umbraco.Sitemap&version=17.0.0
                    
Install as a Cake Addin
#tool nuget:?package=BlendInteractive.Umbraco.Sitemap&version=17.0.0
                    
Install as a Cake Tool

Blend Interactive - Umbraco - Sitemap

License: MIT NuGet version (BlendInteractive.Umbraco.Sitemap)

This is a lightweight package that enables /sitemap.xml at the root of an Umbraco website, supporting multisite environments and culture-specific URLs. This package is configured using appSettings.

Install in Umbraco CMS


Command Line

dotnet add package BlendInteractive.Umbraco.Sitemap

Or Nuget

Install-Package BlendInteractive.Umbraco.Sitemap

Package Name Update

Previously the package was known as Our.Umbraco.Blend.Sitemap. The package name has been updated to BlendInteractive.Umbraco.Sitemap as of version 13.2.0. If you are using a version prior to 13.1.0, please continue to use the old package name.`

Upgrading

The sitemap.cshtml is provided using a Razor project. The file is no longer copied into project on build. If the file exists in the project it will override the default sitemap.cshtml file.

Setup


In the Startup.cs there is a configuration you need to add for /sitemap.xml path to render.

In the app.UseUmbraco() Under .WithEndpoints(u => add:

u.EndpointRouteBuilder.MapControllers();

This will use the route /sitemap.xml declared in the controller.

Default


If there are no settings for the sitemap in the appSettings.json file nothing will be dispalyed.

Configuration


In the root of your appSettings.json you can configure custom settings. You can also use appSettings.[Environment].json to have specific settings for every environment.

"Sitemap": {
    "ExcludeBoolFieldAlias": "aliasBoolField",
    "CacheMinutes": 15,
    "IncludePageImages": false,
    "IncludePageDocuments": false,
    "DocumentTypes": [
        {
            "Aliases": [ "homePage" ],
            "ChangeFrequency": "daily",
            "Priority": 10
        },
        {
            "Aliases": [ "newsList", "eventsList", "landingPage" ],
            "ChangeFrequency": "weekly",
            "Priority": 9
        },
        {
            "Aliases": [ "standardPage", "news", "event" ],
            "ChangeFrequency": "monthly",
            "Priority": 5
        }
    ]
}

Sitemap is the root object and is required.

Sitemap.CacheMinutes is an optional integer. When filled in the sitemap will be cached for that many minutes before rebuilding. If a document type with an alias is Published, Unpublished, Copied, Moved, Moved To Recycling Deleted, or Rolled Back the cache will be cleared and regenerated on next load. If left blank the default is 15 minutes.

Sitemap.ExcludeBoolFieldAlias is an optional string. When filled in all documents to display will use this field to determine if that document should be excluded.

Sitemap.IncludePageImage is an optional boolean default false. When true will add image:image > image:loc into each page that are referenced on the page. Image and umbracoMediaVectorGraphics are classified as image types.

Sitemap.IncludePageDocuments is an optional boolean default false. When true will add document that isn't an image type as a url with the same changeFrequency and priority as the document it was referenced on.

Sitemap.DocumentTypes is a required array of document type groups to be in the sitemap. Each group change frequency and priority will apply to that group's aliases.

Sitemap.DocumentType.Aliases is a required array of strings. The aliases of the document type to be included in sitemap.

Sitemap.DocumentType.ChangeFrequency is an optional string. Options for this are always, hourly, daily, weekly, monthly, yearly, and never. If not filled in these document types will not have the property.

Sitemap.DocumentType.Priority is an optional integer. Options for this are 1 thorugh 10. If not filled in these document types will not have the property.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
17.0.0 142 1/16/2026