Depending on the current user role, it should be possible to disable or hide sections, columns and tabs.
The ‘Panel-View-Extended’ plugin should be part of the core. https://github.com/mullema/k3-panel-view-extended
It’s already possible to do this using the Panel View Extended plugin, and custom CSS.
This suggestion maybe should be merged with https://kirby.nolt.io/129
The ideas can’t be merged as they are about different kinds of permissions. I’ve added a link back to this idea so we can keep track of both.
This is a great idea. Was this ever implemented?
Since Kirby 3.6 this is actually possible using existing Kirby features without needing any plugins.
First, set up a custom CSS file to apply to the panel: https://getkirby.com/docs/reference/system/options/panel#custom-panel-css
Then, use the .k-panel[data-role]
selector to hide different items from certain roles: https://getkirby.com/docs/reference/panel/styling#css-selectors
e.g.
[data-role="editor"] .k-section-name-styling {
display: none;
}
Mayeb to bring some life into this one again: what would the blueprint syntax be for this?
Maybe something like this?
sections:
sidebar:
type: fields
hidden:
editor: true
fields:
...
If something is related to “roles”, I think it makes most sense to use “roles” for it:
type: text
roles:
admin: true
editor: false
Then, you can specify roles
on a field level, section level, tab level, and page level.