AutoBlockList 2.1.1
dotnet add package AutoBlockList --version 2.1.1
NuGet\Install-Package AutoBlockList -Version 2.1.1
<PackageReference Include="AutoBlockList" Version="2.1.1" />
<PackageVersion Include="AutoBlockList" Version="2.1.1" />
<PackageReference Include="AutoBlockList" />
paket add AutoBlockList --version 2.1.1
#r "nuget: AutoBlockList, 2.1.1"
#:package AutoBlockList@2.1.1
#addin nuget:?package=AutoBlockList&version=2.1.1
#tool nuget:?package=AutoBlockList&version=2.1.1
2.0.0 introduced the ability to convert macros!
Auto block list is an Umbraco package made for v10+. Made to help automate the process of converting nested content and macros into block list components. In addition, it transfers the content to the new block list format.
About
With the removal of nested content in Umbraco 13 and macros in Umbraco 14, upgrading can potentially be challenging if you use these features frequently. That's where Auto block list comes in. With one click, AutoBlockList runs the following workflow based on data type.
Nested Content Conversion
- Creates the block list data type based on the old nested content data type.
- Adds the new data type to the document type.
- Transfers the existing content to the newly created block list.
Macro Conversion
- Scans all content with TinyMCE properties for macro usage
- For each unique macro found:
- Creates an element-type document type with the same alias as the macro
- Adds properties matching the macro's parameters
- Places the new document type in a dedicated folder
- Converts macro instances in content to block list components
- Migrates partial view macros to regular partial views
- Updates the rich text editor configuration to include the new block types
Settings
"AutoBlockList": {
BlockListEditorSize: "medium",
SaveAndPublish: true,
NameFormatting: "[Block list] - {0}",
AliasFormatting: "{0}BL",
FolderNameForContentTypes: "[Rich text editor] - Components"
}
BlockListEditorSizeDetermines the default size when creating a block list data type. Sizes:small,medium,large.SaveAndPublishWhen transferring content. If the node should be saved and published or only saved.- In the
NameFormattingsetting the{0}will be replaced with the nested content data type name. Make sure to keep the{0}. - In the
AliasFormattingsetting the{0}will be replaced with the property alias containing the nested content. Make sure to keep the{0}. FolderNameForContentTypesDetermines the name of the folder where document types based on macros will be created. (This folder will be created in the root)
Usage
- Install the package and restart your Umbraco application
- Navigate to Settings and find the "Auto Block List" section
- Configure settings in your
appsettings.jsonif needed (optional) - Review content in the overview dashboard
- Select items to convert (nested content and/or macro content)
- Start conversion and monitor progress
- Review results in the detailed report
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. 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. |
-
net8.0
- Umbraco.Cms.Web.BackOffice (>= 13.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.