Publish via UI extension

Hi all,

I’m looking to trigger a publish on change of a field interfaced by a sidebar UI extension, is this possible?

Also is it possible to push a sidebar UI extension further up the sidebar? Or will it always appear beneath the “system” options?

Thanks!

Hi Kyle,

In the extension SDK that you load into your extension you have access to the method extension.space.publishEntry(). You can use that method to publish an entry. A list of all available methods can be found here: https://github.com/contentful/ui-extensions-sdk/blob/f4bf4ca3b9253d95d80f07dba275d3556955d4a0/docs/ui-extensions-sdk-frontend.md#extensionspace

As for the order of items in the sidebar, currently extensions are distinct from the system options and always come last.

Cheers,
Rouven