Element.Preview 0.1.0

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

Element Preview

Preview every page an Umbraco Element lives on.

The idea

Umbraco 18 added Elements — reusable content blocks managed in a new Library section. Editing an Element updates it everywhere it's referenced, but there's no built-in way to preview that effect across the whole site without opening each referencing page individually.

This package adds a Save and preview action to an Element's workspace, next to the existing Save action. Clicking it saves the Element's draft and opens the real front-end preview of the first page that uses it. Inside that preview tab's own toolbar, next to Umbraco's own "Fit browser" control, a small Previous / N of M / Next control lets you step through every other page that references the same Element — reusing a single browser tab rather than opening one per page.

Usage discovery calls Umbraco's own public "referenced by" Management API endpoints (ElementService/DocumentService/MediaService/MemberService) — the same ones behind the Info workspace view's "where used" list — walking transitively past any non-previewable referrer (a nested Element, or a Media/Member item) until it reaches an actual previewable page. No custom backend, no new database tables, no bespoke indexing, no Core changes required.

Getting started

dotnet add package Element.Preview

Restart the site — there's no configuration step. See docs/installation.md for the full walkthrough and docs/how-it-works.md for how usage resolution and the preview toolbar control work, including what to expect from usages that can't be previewed.

Building this repo

dotnet build ElementUsagePreview.slnx

There's no C# beyond the .csproj itself — every bit of this package's logic lives in src/ElementUsagePreview/wwwroot, shipped as static backoffice extension assets. Build and test the frontend there:

cd src/ElementUsagePreview/wwwroot
npm install
npm run build
npm test

Contributing

See CLAUDE.md for the design decisions and constraints an AI coding agent (or a human) should follow when working on this repo.

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
0.1.0 98 9/14/2026