Page 1 of 1

Config

Posted: Mon May 20, 2024 6:07 pm
by shuray
Hi, kev1n!
Is it allowably to store custom parameters in zzzzsys_config?
Can I lose thise parameters after update?

Thx

Re: Config

Posted: Tue May 21, 2024 10:48 am
by kev1n
Hi,

Yes, it's possible. Make sure that the cfg_setting column contains a unique value and that the primary key zzzzsys_config_id does not start with a nu-prefix.

At the moment, however, Setup -> Settings can only be modified via the database.

Re: Config

Posted: Tue May 21, 2024 9:11 pm
by shuray
NB: Actually it is not a piece of cake.

There are several cfg_category's in the zzzzsys_config:
* Settings
* Users
* Options
* 2FA
* Includes
* nuUXOptions
* nuAdminButtons

It is impossible just to add a new category because in JS will be generated a code MyNewCategory['myConfigName'] = 'muValue'; and the variable MyNewCategory does not exists.
Other categories are logically not matched to my needs exept probably Settings, but my name of cfg_setting has to be started from $ as PHP varialbe. So, storing custom parameters in zzzzsys_config is possible, but inconvenient

Re: Config

Posted: Wed May 22, 2024 7:36 am
by kev1n
The Category does not matter, enter any category. If cfg_setting starts with a $ prefix, it is a PHP variable, otherwise it is a JavaScript variable.
The settings-form has recently been optimised.