Join Discord
Communities
Powered by
Contentservice - Block list
# help-with-umbraco
p
Peter R
06/13/2024, 1:44 PM
Hi, Umbraco 13 Anyone know how we programmaticaly can create content for a block list on a page using contentservice?
a
attack_monkey
06/13/2024, 5:01 PM
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
Chad
06/17/2024, 4:40 AM
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
Peter R
06/17/2024, 8:42 AM
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
18
Views
Previous
Next