Contentservice - Block list
p
Hi, Umbraco 13 Anyone know how we programmaticaly can create content for a block list on a page using contentservice?
a
Scroll down near the bottom of the block list docs and there’s a section that gives examples of creating block list content programmatically: https://docs.umbraco.com/umbraco-cms/v/13.latest-lts/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/block-editor/block-grid-editor
c
I am battling this at the moment... it's ... painful.. especially once you have blocklists nested in blocklists... it's json strings all the way down.
p
Thanks, someone made a short gist for it that I used, I dont have nested content at this point 🙂 https://gist.github.com/DanDiplo/1e8e4dcd93bcc29115ef16c62e3d090a
17 Views