Relewise.Integrations.Umbraco 18.3.0

Prefix Reserved
dotnet add package Relewise.Integrations.Umbraco --version 18.3.0
                    
NuGet\Install-Package Relewise.Integrations.Umbraco -Version 18.3.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="Relewise.Integrations.Umbraco" Version="18.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Relewise.Integrations.Umbraco" Version="18.3.0" />
                    
Directory.Packages.props
<PackageReference Include="Relewise.Integrations.Umbraco" />
                    
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 Relewise.Integrations.Umbraco --version 18.3.0
                    
#r "nuget: Relewise.Integrations.Umbraco, 18.3.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 Relewise.Integrations.Umbraco@18.3.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=Relewise.Integrations.Umbraco&version=18.3.0
                    
Install as a Cake Addin
#tool nuget:?package=Relewise.Integrations.Umbraco&version=18.3.0
                    
Install as a Cake Tool

Relewise.Integrations.Umbraco GitHub license NuGet version PRs Welcome

Documentation

Start with the documentation overview to choose between automatic mapping, a custom content mapper, and a property converter.

Installing Relewise.Integrations.Umbraco

First make sure to have Umbraco installed:

dotnet new umbraco

Then you can install the Relewise.Integrations.Umbraco Package through the .NET CLI by running this command:

dotnet add package Relewise.Integrations.Umbraco

... or from the NuGet Package Manager Console by running this command:

Install-Package Relewise.Integrations.Umbraco

Using Relewise.Integrations.Umbraco

Open Program.cs and add Relewise to the IServiceCollection-instance:

builder.Services.AddRelewise(options => options.ReadFromConfiguration(builder.Configuration));

... where the above configuration, requires Relewise configuration in appsettings.json:

"Relewise": {
  "DatasetId": "insert-dataset-id-here",
  "ApiKey": "insert-api-key-here",
  "ServerUrl": "insert-server-url-here"
}

Find more details about this here: https://github.com/Relewise/relewise-sdk-csharp-extensions

To integrate with Umbraco, you need to add Relewise to the UmbracoBuilder (.AddUmbraco(...)), and optionally specify which ContentTypes, that you would like exported into Relewise for content search and recommendations.

In the example below we are exporting four content types into Relewise:

builder.CreateUmbracoBuilder()
    .AddBackOffice()
    .AddWebsite()
    .AddDeliveryApi()
    .AddComposers()
    .AddRelewise(options => options
        .AddContentType("landingPage", contentType => contentType.AutoMap())
        .AddContentType("blogList", contentType => contentType.UseMapper(new BlogMapper()))
        .AddContentType("contentPage", contentType => contentType.AutoMap())
        .AddContentType("blogEntry", contentType => contentType.AutoMap()))
    .Build();

BlogMapper above represents your own IContentTypeMapping implementation; it is not included in the package. See how to write and register a mapper, or use the complete Block List and Block Grid example.

If you'd also like these content types to be automatically tracked, you can add our middleware to the UmbracoBuilder (.UseUmbraco(...)):

app.UseUmbraco()
    .WithMiddleware(u =>
    {
        u.UseBackOffice();
        u.UseWebsite();
        u.TrackContentViews();
    })
    .WithEndpoints(u =>
    {
        u.UseInstallerEndpoints();
        u.UseBackOfficeEndpoints();
        u.UseWebsiteEndpoints();
    });

Content IDs across environments

Numeric Umbraco node IDs remain the default. To export stable Umbraco content keys (GUIDs) instead, add this environment setting alongside your Relewise client settings:

"Relewise": {
  "DatasetId": "insert-dataset-id-here",
  "ApiKey": "insert-api-key-here",
  "ServerUrl": "insert-server-url-here",
  "Umbraco": {
    "UseContentKeysAsIds": true
  }
}

Use appsettings.Development.json for a local override, or the environment variable Relewise__Umbraco__UseContentKeysAsIds=true. Restart the application after changing this setting. Configuration is read when the integration is initialized; it is not an editor or per-document setting. Omitting it (or setting it to false) preserves existing numeric IDs. An explicit options.UseContentKeysAsIds = ... in the Umbraco .AddRelewise(...) callback overrides the environment setting.

With this enabled, exported content, ancestor IDs in category paths, automatic content-view tracking, and unpublish/recycle/delete actions use the content key in lowercase, hyphenated GUID format (for example, 1a234567-89ab-4cde-8f01-23456789abcd). Umbraco's internal database and published-cache lookups still use local identities. Custom mappers receive an update initialized with the selected ID and should preserve that ID. For references that you export yourself, resolve RelewiseUmbracoConfiguration from the mapping context and call GetContentId(referencedContent); use the same convention in custom tracking, searches, filters, and code that resolves Relewise results back to Umbraco. For example, inside a custom mapper:

var configuration = context.GetRequiredService<RelewiseUmbracoConfiguration>();
var referenceId = configuration.GetContentId(referencedContent);

Here referencedContent is a resolved IPublishedContent; add using Microsoft.Extensions.DependencyInjection; for GetRequiredService. The setting does not rewrite arbitrary IDs inside property data, rich text, URLs, media IDs, or application-owned integrations. Existing property converters and custom mappers still determine which referenced values are exported.

Matching content keys let two environments update the same Relewise entity even when their numeric node IDs differ. The content must actually share a key (for example, preserved by your content deployment process); independently authored copies with different GUIDs remain different entities. All writers sharing a Dataset must agree on the ID convention. GUID identity does not isolate the environments: publishing locally can overwrite shared fields, including absolute URLs, display names, and content data. Unpublishing or deleting locally can also disable or delete the shared entity. Use a separate development Dataset when those side effects are undesirable.

Switching an existing installation

Changing the setting is an identity change, not a migration. The integration does not rename, merge, or delete existing entities when this setting changes. Subsequent publishes create GUID-based entities while existing numeric entities and their history remain separate; changing back has the corresponding effect. Category IDs, custom references, saved filters, and tracking/history can also be affected.

Before switching, plan the transition for every writer and consumer, preferably validate it in a separate Dataset, and explicitly decide how to re-export content and handle the old entities/history. Do not assume that old numeric history will move to the GUID entity. The dashboard's explicit full export retains its existing stale-content cleanup behavior: it disables entities not carrying the current export version, or deletes them if permanent deletion is selected. Review that operation before using it on an existing or shared Dataset; it is not a GUID migration tool.

Book a Demo

You can click here to Book a Relewise demo.

Resources

Find more information on the Umbraco Marketplace.

Documentation can be found at https://docs.relewise.com.

Please don't hesitate to reach out to us - www.relewise.com - if you'd like to know more, including how to gain access to our API.

Contributing

Pull requests are always welcome.
Please fork this repository and make a PR when you are ready with your contribution.

Otherwise you are welcome to open an Issue in our issue tracker.

License

Relewise.Integrations.Umbraco is MIT licensed.

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
18.3.0 154 10/26/2026
18.2.0 142 9/24/2026
18.0.0 164 7/9/2026
17.0.0 1,040 12/12/2025
1.18.0 135 7/9/2026
1.10.1 410 7/4/2025
1.10.0 266 7/4/2025
1.9.1 283 7/4/2025
1.8.1 1,410 7/31/2024
1.8.0 346 6/21/2024
1.7.2 394 3/2/2024
1.7.1 331 3/2/2024
1.7.0 327 3/1/2024
1.6.1 1,489 10/2/2023
1.6.0 288 9/24/2023
1.5.2 315 8/29/2023
1.5.1 1,938 1/26/2023
1.5.0 540 1/18/2023
1.4.2 542 1/13/2023
Loading failed