Hi, kev1n!
Is it allowably to store custom parameters in zzzzsys_config?
Can I lose thise parameters after update?
Thx
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Config
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: Config
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.
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
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
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
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: Config
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.
The settings-form has recently been optimised.