Allow people to publish while viewing a draft piece of content (or do other workflow state transitions such as made possible by content moderation, from a view mode not having to go into the edit page)

First step is seeing the form.


Add this to your custom node template:

{{ content.content_moderation_control }}

(If you’re already printing {{ content }} you don’t need to do this, it’ll just work.)

Solution from

Also needs the answer:

But it turns out we can’t use it for Find It because

Result: Content is published without required fields.

Expected result: Validation runs and message is given that required field must be provided.

And the controls go away when the item content is published, whether you want them to or not, and i guess… that’s a feature?