Sorry, we don't support your browser.  Install a modern browser

Custom page status#159

D

It would be great to be able to create custom statuses. This would open up lots of possibilities for content editing workflows. For example there could be a status called »in review« and only certain user roles are able to change it to »listed«.

3 years ago

Did you see that you can customize the on-board status labels and descriptions? https://getkirby.com/docs/reference/panel/blueprints/page#statuses

You could combine this with permissions to avoid status changes by certain roles.

3 years ago

If you don’t want to block status changes entirely, you can also work with a hook: https://getkirby.com/docs/reference/plugins/hooks/page-changestatus-before

In this hook you can check for the role of the current user and the status to switch to and throw an exception if the status change should not be possible.

3 years ago
1

Throwing an exception in a hook will create a nice status message in the panel, so you can basically model what you are looking for.

3 years ago
D

Thank you, Bastian. I think you are right – the combination of renaming statuses, roles, hooks and exceptions should go a long way. 👍

3 years ago