Our.Umbraco.Blend.Sitemap 9.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Our.Umbraco.Blend.Sitemap --version 9.0.2
NuGet\Install-Package Our.Umbraco.Blend.Sitemap -Version 9.0.2
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="Our.Umbraco.Blend.Sitemap" Version="9.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Our.Umbraco.Blend.Sitemap --version 9.0.2
#r "nuget: Our.Umbraco.Blend.Sitemap, 9.0.2"
#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.
// Install Our.Umbraco.Blend.Sitemap as a Cake Addin
#addin nuget:?package=Our.Umbraco.Blend.Sitemap&version=9.0.2

// Install Our.Umbraco.Blend.Sitemap as a Cake Tool
#tool nuget:?package=Our.Umbraco.Blend.Sitemap&version=9.0.2

Blend Sitemap


License: MIT NuGet version (Our.Umbraco.Blend.Sitemap)

This is a lightweight package that enables /sitemap.xml at the root of an umbraco website. This package is configured using appSettings.

Install in Umbraco CMS


Command Line

dotnet add package Our.Umbraco.Blend.Sitemap

Or Nuget

Install-Package Our.Umbraco.Blend.Sitemap

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 not any configurations in the the appSettings.json file this package will load all document types.

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"
    "ChangeFrequency": "weekly",
    "Priority": "0.5",
    "DocumentTypes: [
        {
            "Alias": "homePage",
            "ChangeFrequency": "daily"
            "Priority": "1.0"
        },
        {
            "Alias": "standardPage"
        },
        {
            "Alias": "search"
        }
    ]
}

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.ChangeFrequency is a required string. Options for this are always, hourly, daily, weekly, monthly, yearly, and never.

Sitemap.Priority is a required string. Options for this are 0.1 thorugh 0.9 and 1.0.

Sitemap.DocumentTypes is an optional array of document types to be in the sitemap.

DocumentType.Alias is a required string. The alias of the document type to be included in sitemap.

DocumentType.ChangeFrequency is an optional string. If not filled in will use the Sitemap.ChangeFrequency with the same options available.

DocumentType.Priority is an optional string. If not filled in will use the Sitemap.Priority with the same options available.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.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
13.0.2 230 2/29/2024
13.0.1 221 1/25/2024
11.1.10 92 2/29/2024
11.1.8 672 8/10/2023
11.1.7 198 7/21/2023
11.1.6 282 5/12/2023
11.1.5 382 3/9/2023
11.1.4 227 3/9/2023
11.1.3 221 3/8/2023
11.1.2 220 3/7/2023
11.1.1 268 1/31/2023
11.1.0 267 1/26/2023
11.0.3 262 1/26/2023
11.0.2 258 1/25/2023
11.0.1 272 1/24/2023
10.0.1 150 3/4/2024
10.0.0 725 7/29/2022
9.1.4 446 7/29/2022
9.1.2 426 7/29/2022
9.0.2 448 5/16/2022