Hide Page settings for client?

Is is possible to hide the Page settings in the left column of the Kirby panel? It’s unnecessary for the client, and misleading because the preview link leads to urls for which I have no templates. Many pages are restaurant menu categories and menu items.

Even better would be to hide certain elements of the settings like “Open preview” and “Template: page”.

Sure, you can set those to false in the page blueprint :

title: Blueprint title
(...)
options:
  preview: false
  template: false
fields:
  (...)

See the docs for more detailed explanations about those options.

1 Like

Thanks @sylvainjule. It was right up there on top!

edit: Probably too much to ask for a global setting for these that applies to all pages, right?

An alternative would be to use permissions to hide these UI options by user role. Might be easier if you have a lot of blueprints.

1 Like

@texnixe I don’t see these options (preview, template, etc.) in the permissions docs. Did I overlook it?

Unfortunately, the permissions are called differently:

  'permissions' => [
    '*'                 => true,
    'panel.page.visibility' => false, // status
    'panel.page.template' => false, // change template
    'panel.page.delete' => false,
    'panel.page.url' => false // change URL

Unfortunately, it is not possible to remove the preview link like this. So maybe it is not that useful after all.