Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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:
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?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted