How to disable widgets in the panel

Hi,

I would like to disable or hide the “Your site’s URL” and “Your last updates” widget from the panel dashboard.

Is there a magic code line to add in the config file to achieve this?

Thx :slight_smile:

You can set permissions: https://getkirby.com/docs/cheatsheet#permissions

Perfect, thanks Sonja!

There’s also an undocumented option:

c::set('panel.widgets', array(
  'site' => false,
  'pages' => false,
  'history' => false,
  'account' => false
));

And you get an all empty dashboard…

1 Like

The magic code line finally exists … :wink: