Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Configuration Variables

Quote Reply
Configuration Variables
I see the build_images_url was added :)

Also, in looking at the code, wouldn't it be easy to have the admin generate the "config" screens from a database table, and create the config-hash from that??

Rather than coding the description and details in the HTML, create an input form, that edits the variables that are kept in an SQL table, then writes them out to the ConfigData.pm file on exit/save.

Each item would contain, just eyballing it:

Key,
Value,
Description (text)


Also, this could be linked to the help system, by adding a field for "help".

Then, the admin screen would just be generated from the same template parser the rest of the program uses.

Multi-page configuration options could be stored to separate tables, or have the fields prefixed with page1_ page2_ etc...

Make sense?

That would allow users to enter configuration variables from the admin, they are kept in the config table, and written out to the "include" config file.

Everything works the same way, nothing hard coded, and any new variables/settings are automatically updated when changed....

http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: Configuration Variables In reply to
Yes, that's something I've wanted to do for a while, but I'm not sure if it will be done in time.

Basically, have a text file which contains all your config options as normal, plus enough information to easily build a nice web based config around it (contains info like: grouping tabs, menu option, menu type, help text, etc).

So much to do.. =)

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Configuration Variables In reply to
As long as those hooks are _planned_ once the code is released, you'll have a lot of help adding in features. :)

That is what has been so frustrating, is all the changes make it very hard to start coding/planning for the new release, and it means you have to do it all on your own.....

http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/