Patrick de Mooij
09/29/2024, 8:55 AMPatrick de Mooij
09/29/2024, 8:56 AMPatrick de Mooij
09/29/2024, 10:13 AMPatrick de Mooij
09/29/2024, 6:15 PMNiels Lyngsø
09/29/2024, 6:45 PMextensionRegistry.register(...)
I can recommend looking at the bundle
extension type.
https://docs.umbraco.com/umbraco-cms/customizing/extending-overview/extension-types/bundle
I did notice one thing, which is that you spin up your Workspace Context in your Workspace Element — This was an early way of doing it, now you can point to your context as the api
of your Workspace Manifest. (The element will get a reference to it, if you make a property called api
)
I would say you can find good inspiration, in the Webhook Workspace in Core.
This utilizes a kind
called routable
which gives you a default workspace element,
So you will see this manifest only declare a context for it(via the api
property).
And if you look closer in that context, you see how you declares the routes for it. That gives you the base for a workspace with routes(like routable actions, like create and edit)
https://github.com/umbraco/Umbraco.CMS.Backoffice/blob/617b3aed9e89925e5a6adbd8d021bd64708cf3a7/src/packages/webhook/workspace/webhook/manifests.ts
I hope that will work for you 🙂Patrick de Mooij
09/30/2024, 1:34 PM