![]() |
VOOZH | about |
dotnet add package Umbraco.Community.BlockPreview --version 5.4.0
NuGet\Install-Package Umbraco.Community.BlockPreview -Version 5.4.0
<PackageReference Include="Umbraco.Community.BlockPreview" Version="5.4.0" />
<PackageVersion Include="Umbraco.Community.BlockPreview" Version="5.4.0" />Directory.Packages.props
<PackageReference Include="Umbraco.Community.BlockPreview" />Project file
paket add Umbraco.Community.BlockPreview --version 5.4.0
#r "nuget: Umbraco.Community.BlockPreview, 5.4.0"
#:package Umbraco.Community.BlockPreview@5.4.0
#addin nuget:?package=Umbraco.Community.BlockPreview&version=5.4.0Install as a Cake Addin
#tool nuget:?package=Umbraco.Community.BlockPreview&version=5.4.0Install as a Cake Tool
BlockPreview enables easy to use rich HTML backoffice previews for the Umbraco Block Grid, Block List and Rich Text editors, with full support for both Razor views and ViewComponents.
<img src="https://raw.githubusercontent.com/rickbutterfield/Umbraco.Community.BlockPreview/develop/.github/assets/icon.png" alt="Umbraco.Community.BlockPreview icon" height="150" align="right">
v5.x supports Umbraco v17
v4.x supports Umbraco v16
v1.x supports Umbraco v10.x - v13.x
To understand more about which Umbraco CMS versions are actively supported by Umbraco HQ, please see Umbraco's Long-term Support (LTS) and End-of-Life (EOL) policy.
The Umbraco v17 version of this package is available via NuGet.
To install the package, you can use either .NET CLI:
dotnet add package Umbraco.Community.BlockPreview --version 5.0.0
or the NuGet Package Manager:
Install-Package Umbraco.Community.BlockPreview -Version 5.0.0
BlockPreview requires strongly-typed models (classes with the [PublishedModel] attribute) to be compiled into your application.
Supported configurations:
SourceCodeAuto or SourceCodeManual - Models are generated as .cs files and compiled into your assemblyInMemoryAuto - Models are generated at runtime (development only, requires Umbraco.Cms.DevelopmentMode.Backoffice)If you are using Limbo.Umbraco.ModelsBuilder, the default configuration is to have ModelsMode set to nothing. Once configured, generate models in the backoffice as normal.
Once models are compiled into your assembly, you can deploy with ModelsMode=Nothing to disable runtime regeneration - the compiled model types will still work with BlockPreview.
BlockPreview can be configured in the Program.cs file, before the call to the .Build() method:
+using Umbraco.Community.BlockPreview.Extensions;
builder.CreateUmbracoBuilder()
.AddBackOffice()
.AddWebsite()
.AddDeliveryApi()
.AddComposers()
+ .AddBlockPreview(options =>
+ {
+ options.BlockGrid = new()
+ {
+ Enabled = true,
+ ContentTypes = [RichTextBlock.ModelTypeAlias]
+ };
+
+ options.BlockList = new()
+ {
+ Enabled = true
+ };
+
+ options.RichText.Enabled = false;
+ })
.Build();
Alternatively, it can be configured in appsettings.json:
{
"BlockPreview": {
"BlockGrid": {
"Enabled": true,
"ContentTypes": ["richTextBlock"]
},
"BlockList": {
"Enabled": true
},
"RichText": {
"Enabled": false
}
}
}
📖 - Detailed configuration options, custom view locations, and stylesheet loading
📖 - How to use BlockPreview in your views and editors
📖 - Custom services, request enrichers, and extensibility
To raise a new bug, create an issue on the GitHub repository. To fix a bug or add new features, fork the repository and send a pull request with your changes. Feel free to add ideas to the repository's issues list if you would to discuss anything related to the library.
The repo comes with a test site for Umbraco 17. The site is configured with uSync out of the box to get you up and running with a test site quickly. Use the following credentials to log into the back office:
Username: admin@example.com
Password: 1234567890
This project is maintained by Rick Butterfield and contributors. If you have any questions about the project please get in touch on Bluesky, or by raising an issue on GitHub.
This package is entirely based on the amazing work done by Dave Woestenborghs for 24days in Umbraco 2021. His code has been extended to support the new Block Grid editor in v10.4+ and turned into this package.
Matthew Wise also wrote a great article for 24days in Umbraco 2022 which added the ability to surface ViewComponents and has allowed his code to be contributed.
Ben White contributed the RequestEnricher allowing users to customise View Location and runtime stylesheet loading.
Copyright © 2022-2026 Rick Butterfield, and other contributors.
Licensed under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 4 NuGet packages that depend on Umbraco.Community.BlockPreview:
| Package | Downloads |
|---|---|
|
LittleNorth.Igloo
Igloo is a highly customizable theme for Umbraco CMS. |
|
|
Umbraco.Community.Templates.UmBootstrap
A project template for creating a new Umbraco site using the UmBootstrap Starter Kit |
|
|
Our.Umbraco.BlockPreview
Easy to use rich HTML backoffice previews for the Umbraco Block List and Block Grid editors |
|
|
Our.Community.CustomForm
Custom forms add-on for UmBootstrap |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 6.0.0-rc1 | 98 | 6/4/2026 | |
| 5.4.0 | 669 | 6/4/2026 | |
| 5.4.0-rc | 341 | 4/18/2026 | |
| 5.3.2 | 13,033 | 2/12/2026 | |
| 5.3.1 | 184 | 2/12/2026 | 5.3.1 is deprecated because it has critical bugs. |
| 5.3.0 | 185 | 2/12/2026 | 5.3.0 is deprecated because it has critical bugs. |
| 5.2.1 | 2,653 | 1/23/2026 | |
| 5.2.0 | 417 | 1/22/2026 | |
| 5.1.0 | 1,791 | 1/8/2026 | |
| 5.0.0 | 4,467 | 11/27/2025 | |
| 4.2.2 | 615 | 2/12/2026 | |
| 4.2.1 | 172 | 2/12/2026 | 4.2.1 is deprecated because it has critical bugs. |
| 4.2.0 | 166 | 2/12/2026 | 4.2.0 is deprecated because it has critical bugs. |
| 4.1.1 | 376 | 1/23/2026 | |
| 4.1.0 | 182 | 1/22/2026 | |
| 4.0.7 | 229 | 1/8/2026 | |
| 4.0.6 | 959 | 11/27/2025 | |
| 1.14.0 | 3,897 | 1/8/2026 |