I have a block editor called Rich Text Editor that lets you choose from a variety of rich text editor combinations, is it possible to read the alias of the block type that was chosen from within the partial?
Example:
Main block container:
var blocks = content.RichTextEditor;
foreach (var block in blocks)
{
var blockType = block.Content.ContentType.Alias;
@Html.Partial("Partials/BlockList/Components/RichTextEditors/" + blockType, block)
}
Then in my partial I'm currently having to do this, what I'm trying to do is pass "RichTextTwoColumnWideLeft" from the container so I don't have to define it in each partial.
var block = Model.Content as ContentModels.RichTextTwoColumnWideLeft;
Pass block type alias to partial
I have a block editor called Rich Text Editor that lets you choose from a variety of rich text editor combinations, is it possible to read the alias of the block type that was chosen from within the partial?
Example:
Main block container:
Then in my partial I'm currently having to do this, what I'm trying to do is pass "RichTextTwoColumnWideLeft" from the container so I don't have to define it in each partial.
is working on a reply...