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.

Config

Questions related to using nuBuilder Forte.
Post Reply
shuray
Posts: 30
Joined: Sun Apr 23, 2023 3:36 pm
Has thanked: 10 times
Been thanked: 5 times

Config

Unread post by shuray »

Hi, kev1n!
Is it allowably to store custom parameters in zzzzsys_config?
Can I lose thise parameters after update?

Thx
kev1n
nuBuilder Team
Posts: 4562
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 528 times
Contact:

Re: Config

Unread post 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.
shuray
Posts: 30
Joined: Sun Apr 23, 2023 3:36 pm
Has thanked: 10 times
Been thanked: 5 times

Re: Config

Unread post 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
kev1n
nuBuilder Team
Posts: 4562
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 528 times
Contact:

Re: Config

Unread post 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.
Post Reply