Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Richard 1 post 71 karma points
    1 week ago
    Richard
    0

    Programmatically adding to Block List that already has content

    Hi,

    I'm looking to programmatically add content to a Block List that already has content. I've used the example at the bottom https://docs.umbraco.com/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/block-editor/block-list-editor to set the Block List content, which I've got working.

    My issue is adding to that block list whist keeping what is already there. My main issue is not being able to get the contentData and settingsList of the existing Block List, which I would be able to add to.

    Looping though what is already there and recreating it all doesn't seem to be the most efficient. I also get the error "Self referencing loop detected for property 'ContentType'" when doing that.

    If anyone has been able to achieve this, the solution would be much apricated.

    Many thanks, Rich

Please Sign in or register to post replies

Write your reply to:

Draft