New Section Block Item System.InvalidOperationException
Hi!
I was trying to add a new section block to the Sections Block Picker, I followed the 'Add' -> 'Create new element type' section and it managed to create a new section block that I can add to the pages.
I gave the content model the composition of:
Abstract Section Block
and the settings model the compositions:
Abstract Section Effects Block
Abstract Section Layout Block
Abstract Section Title Block
I also added a partial view to the cached folder under the Sections Blocks folder. (I have also tried moving it to Sections Blocks root and the uncached folder)
But when visiting the page where I have put the new section block, I receive the error on line 15 in the file _PageBlockRenderer.cshtml:
var blocks = (Model as IAbstractPageSections).Sections;
System.InvalidOperationException: Don't know how to map ModelType with content type alias "sectionPIBlockSettings".
I have tried renaming the aliases to all sorts of things and even tried using a different Setting model (and without), but then it gives me a null reference error on line 18 in the file _PageBlockRenderer.cshtml:
System.NullReferenceException: Object reference not set to an instance of an object.
foreach (var block in blocks.Where(x => (x.Content as IAbstractSectionBlock).Disabled == false))
Is there something I am missing, that I was supposed to do while creating the new elements?
New Section Block Item System.InvalidOperationException
Hi!
I was trying to add a new section block to the Sections Block Picker, I followed the 'Add' -> 'Create new element type' section and it managed to create a new section block that I can add to the pages.
I gave the content model the composition of:
and the settings model the compositions:
I also added a partial view to the cached folder under the Sections Blocks folder. (I have also tried moving it to Sections Blocks root and the uncached folder)
But when visiting the page where I have put the new section block, I receive the error on line 15 in the file _PageBlockRenderer.cshtml:
I have tried renaming the aliases to all sorts of things and even tried using a different Setting model (and without), but then it gives me a null reference error on line 18 in the file _PageBlockRenderer.cshtml:
Is there something I am missing, that I was supposed to do while creating the new elements?
is working on a reply...