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'm trying to import some content into a site that uses content blocks, but I'm struggling to figure out how to programatically create new content blocks and add them to my pages using the content service.
Has anyone managed to do this?
Hi Tim
There is some 'work in progress' documentation for doing that on the Umbraco Docs repo:
https://github.com/umbraco/UmbracoDocs/blob/e64ec0e5b28b4e5a37b7865691621e45dd82701f/Getting-Started/Backoffice/Property-Editors/Built-in-Property-Editors/Block-List-Editor/index.md
If you scroll down to the bottom, that might give you the right steer?
regards
marc
Thanks Marc, that's EXACTLY what I was after! I couldn't work out how I got the UDIs, but that explains it perfectly. Thank you :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" button below.
Continue discussion
Programatically adding block list items
I'm trying to import some content into a site that uses content blocks, but I'm struggling to figure out how to programatically create new content blocks and add them to my pages using the content service.
Has anyone managed to do this?
Hi Tim
There is some 'work in progress' documentation for doing that on the Umbraco Docs repo:
https://github.com/umbraco/UmbracoDocs/blob/e64ec0e5b28b4e5a37b7865691621e45dd82701f/Getting-Started/Backoffice/Property-Editors/Built-in-Property-Editors/Block-List-Editor/index.md
If you scroll down to the bottom, that might give you the right steer?
regards
marc
Thanks Marc, that's EXACTLY what I was after! I couldn't work out how I got the UDIs, but that explains it perfectly. Thank you :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" button below.
Continue discussion