Mario Lopez
06/27/2024, 6:26 AMleekelleher
06/27/2024, 7:19 AM<umb-debug visible>
component to your property-editor, it'll give you an overview of which contexts are available to your component.
https://apidocs.umbraco.com/v14/ui/?path=/docs/guides-debug--docs
One thing to note is that property-editors may be used elsewhere in the CMS (outside of documents, media), e.g. custom sections, UI Builder (once it's developed), so some context may not be available in those scenarios.Mario Lopez
06/27/2024, 7:45 AMMario Lopez
06/30/2024, 7:09 AMleekelleher
07/01/2024, 8:20 AMUMB_WORKSPACE_CONTEXT
(which for documents would give you UmbDocumentWorkspaceContext
), then use getData()
to get the full data object of the workspace, I think the property data is inside .values
.
https://github.com/umbraco/Umbraco.CMS.Backoffice/blob/v14.1.0-rc1/src/packages/documents/documents/workspace/document-workspace.context.ts#L295
There is also a .structure
observable on the workspace context too, which gives the doctype object, so that might be a good solution too.