Umbraco.Community.PropertyEditors.Heading
1.1.0
dotnet add package Umbraco.Community.PropertyEditors.Heading --version 1.1.0
NuGet\Install-Package Umbraco.Community.PropertyEditors.Heading -Version 1.1.0
<PackageReference Include="Umbraco.Community.PropertyEditors.Heading" Version="1.1.0" />
<PackageVersion Include="Umbraco.Community.PropertyEditors.Heading" Version="1.1.0" />
<PackageReference Include="Umbraco.Community.PropertyEditors.Heading" />
paket add Umbraco.Community.PropertyEditors.Heading --version 1.1.0
#r "nuget: Umbraco.Community.PropertyEditors.Heading, 1.1.0"
#:package Umbraco.Community.PropertyEditors.Heading@1.1.0
#addin nuget:?package=Umbraco.Community.PropertyEditors.Heading&version=1.1.0
#tool nuget:?package=Umbraco.Community.PropertyEditors.Heading&version=1.1.0
Heading
A lightweight and flexible property editor for headings in Umbraco CMS. Define heading level and alignment through the backoffice, and render easily using the built-in TagHelper.
Getting Started
Creating the Data Type
To use the Heading Property Editor, follow these steps:
- Go to Settings → Data Types.
- Create Data Type.
- Name it (e.g.,
Heading
). - Select "Community Heading" as the property editor.
- Save the data type.
Adding to a Document Type
- Navigate to Settings → Document Types.
- Open or create a Document Type.
- Add a new property.
- Choose the
Heading
data type you just created. - Save the Document Type.
Now, editors will be able to input structured headings with control over level (H1–H6) and alignment.
Rendering the Heading
To render the heading in your views, you can use the built-in TagHelper.
Step 1: Register the TagHelper
Add the following line to your _ViewImports.cshtml
:
@addTagHelper *, Umbraco.Community.PropertyEditors.Heading
Example 1: Without Models Builder
If you're not using Models Builder, use Model.Value<HtmlHeading>()
:
@using Umbraco.Community.PropertyEditors.Heading.Models
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage
@{
Layout = null;
var heading = Model.Value<HtmlHeading>("heading");
}
<umb-community-heading heading="@heading" />
Example 2: With Models Builder
If you are using strongly typed models via Models Builder:
<umb-community-heading heading="@Model.Heading" />
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net9.0
- Microsoft.AspNetCore.Razor (>= 2.3.0)
- Umbraco.Cms.Core (>= 16.0.0 && < 17.0.0)
- Umbraco.Community.PropertyEditors.Heading.Assets (>= 1.1.0)
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 |
---|---|---|
1.1.0 | 128 | 9/10/2025 |
1.1.0-beta2 | 131 | 9/9/2025 |
1.1.0-beta1 | 143 | 8/20/2025 |
1.0.0 | 459 | 7/24/2025 |