This package extends the default block list property editor in Umbraco, making it possible to control the CLR type returned by our version of the block list property editor.
The default block list property editor exposes the value as an instance of BlockListModel
representing the invividual blocks as they are added by users in the backoffice.
If you wish to interpret the BlockListModel
a bit before rendering the block list on the website, there is a few different ways to go about this. With this package, you can select a type converter which is then used for converting BlockListModel
to a desired type.
For us at @limbo-works, we find this particular usefull as we can use a type converter to control the output for our headless API, thereby better being able to tailor the output for our frontenders.
Install via .NET CLI:
dotnet add package Limbo.Umbraco.BlockList --version 3.0.0
Install via NuGet Package Manager:
Install-Package Limbo.Umbraco.BlockList -Version 3.0.0
Install via .NET CLI:
dotnet add package Limbo.Umbraco.BlockList --version 2.0.0
Install via NuGet Package Manager:
Install-Package Limbo.Umbraco.BlockList -Version 2.0.0
Install via NuGet:
Install-Package Limbo.Umbraco.BlockList -Version 1.0.0
Install Umbraco package: