BlockFarmEditor.Umbraco
17.2.9
dotnet add package BlockFarmEditor.Umbraco --version 17.2.9
NuGet\Install-Package BlockFarmEditor.Umbraco -Version 17.2.9
<PackageReference Include="BlockFarmEditor.Umbraco" Version="17.2.9" />
<PackageVersion Include="BlockFarmEditor.Umbraco" Version="17.2.9" />
<PackageReference Include="BlockFarmEditor.Umbraco" />
paket add BlockFarmEditor.Umbraco --version 17.2.9
#r "nuget: BlockFarmEditor.Umbraco, 17.2.9"
#:package BlockFarmEditor.Umbraco@17.2.9
#addin nuget:?package=BlockFarmEditor.Umbraco&version=17.2.9
#tool nuget:?package=BlockFarmEditor.Umbraco&version=17.2.9
Block Farm Editor
Block Farm Editor is a visual content editor for Umbraco that enables flexible, block-based content editing.
Build reusable content blocks and containers that can be managed and rendered throughout your website.
Quick links
- Docs: https://blockfarmeditor.com/readme
- Issue tracker: https://github.com/farmergeek94/blockfarmeditor/issues
Table of contents
Install
dotnet add package BlockFarmEditor.Umbraco
Add AddBlockFarmEditor() to your UmbracoBuilder.
Docs: https://blockfarmeditor.com/readme
Create a Block Area
Block Areas define where blocks can be placed in your templates. Use the <block-area> tag helper to define block areas in your templates.
Docs: https://blockfarmeditor.com/readme/#create-your-first-block-area
Creating Blocks
1. Build your first block
Blocks are reusable components geared toward easily placing content in different areas in your templates. They can be used to create anything from simple text blocks to complex components with multiple properties and behaviors.
Build the Element Type
The initial properties of the block are built out using Umbraco DataTypes just like any other Umbraco Element Type.
Docs: https://blockfarmeditor.com/readme#building-first-block
Create the partial view
Create a partial view to display the properties. You can use standard Umbraco syntax including the Models Builder.
Docs: https://blockfarmeditor.com/readme/#create-the-partial-view
Optional ViewComponent Assembly Attribute
If you prefer to use a View Component for your display vs a direct partial view:
Docs: https://blockfarmeditor.com/readme/#optional-viewcomponent-assembly-attribute
Set up the Block Definition
Go back to the Block’s Element Type. Switch to the Definition tab to set up the Block Definition. This allows the Element Type to be selectable as a visual block.
Docs: https://blockfarmeditor.com/readme/#setup-the-block-definition
2. Defining Custom Block Property Configs
You are able to directly control the configuration passed into a DataType programmatically.
- Use the
BlockFarmEditorConfigurationattribute to define the custom configuration for a property.
Docs: https://blockfarmeditor.com/readme/#defining-block-properties
3. Reusable Layouts
Save reusable page and block layouts to accelerate initial page creation.
Docs: https://blockfarmeditor.com/readme/layouts/
Key Features
- Flexible Property Editors: Use existing Umbraco data types or property editors
- Custom Configuration: Create reusable configuration classes for property editors
- Template Integration: Simple tag helper syntax for rendering block areas
- View Components Support: Use either Razor views or View Components for rendering
- Container Support: Create nested block structures with container blocks
History
Recent releases
- 17.2.8: Updated the export and import to include compositions as well as bugfix for no group property types.
- 17.2.7: Comprehensive Import/Export for Block Definitions.
- 17.2.6: Removed stream reset.
- 17.2.5: Added support for published content and culture in block viewcomponents.
- 17.2.4: Assembly loading improvements and ViewComponent bugfix.
Full changelog: https://github.com/farmergeek94/blockfarmeditor/blob/main/CHANGELOG.md
| Product | Versions 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. |
-
net10.0
- BlockFarmEditor.ClientScripts.RCL (>= 17.2.9)
- BlockFarmEditor.Umbraco.Core (>= 17.2.8)
- Umbraco.Cms (>= 17.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Updated the export and import to include compositions as well as bugfix for no group property types.