Hi there,
is there any way to control the system options from the panel? For example, I wish to have a toggle in the site blueprint to enable/disable the whoops option. It’s much easier to jump into the config and switch manually.
Hi there,
is there any way to control the system options from the panel? For example, I wish to have a toggle in the site blueprint to enable/disable the whoops option. It’s much easier to jump into the config and switch manually.
No, this is not possible, because you cannot call the $site
object in the config. There’s a feature request somewhere… But this is usually not something a user should control, as they only edit content anyway and you don’t want to accidentally expose error messages.
Of course, I understand! But for global E-Mail settings and the whoops it would definitly make sense!
I think you could work around this by storing the information in some file and then read from that file in your config. A bit of a deviation, but possible.
Yes, really a bit strange I will change it manually or wait until $site is available in Config