Umbraco 15 Backoffice Block Editor Views, how to g...
# help-with-umbraco
a
What is the best way to get the raw json content values from an UMB_BLOCK_ENTRY_CONTEXT? this.consumeContext(UMB_BLOCK_ENTRY_CONTEXT, async (blockEntryContext) => { let contentData; let settingsData = {}; /*need to fetch content data like this: { "contentTypeKey":"b5b24562-0bc7-4c1c-b5e9-02a24b6771a1", "udi":"umb://element/104c339c8aba488687b85178ce728a02", "headline":"Welcome!", "headlineType":["h1"], "centered":true } */ }); I can't find the unadulterated versions of this data in UMB_PROPERTY_CONTEXT or UMB_BLOCK_ENTRY_CONTEXT
I actually solved most of this by flattening the .values returned with js.
5 Views