Note
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.
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.
- 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.
- 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
"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)
- 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
If you would like to help me improve this package, feel free to create a pull request!
If you find any issues with the package feel free to raise an issue!

