Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Standard Options

Quote Reply
Standard Options
Alex,

I gather the order of things is:

Config.pm
ConfigData.pm
globals.txt

I have about 4 dozen "custom" tags I use from site to site, and which are
things I'd like to "incorporate" into the basic configuration, rather than on template basis.

I use set options to build other options, etc.

Which file should be edited? And how should these configurations be added.

For instance, I want to install a set of color tags.

I use:

<%color1%>
<%color2%>
<%color3%>
<%color4%>
<%color5%>
<%color6%>
<%color7%>
<%color8%>
<%bg_white%>
<%ff_white%>
<%bg_black%>
<%ff_black%>

Across all the sites. I would like to add an option page for "Colors". -- In a way divide up into pages the sections of the ConfigData.pm file.



In looking around, all this is "hard coded"

Why isn't it dynamically generated? using the templates?

If all the information is added to the Config.pm file, then the HTML templates could be dynamically generated just like the Links records are.

Rightnow, the HTML page is a series of :

Code:
<tr>
<td width="100%" colspan="2"><font face="Tahoma,Arial,Helvetica" size="2">Links
SQL Debug Level. This will display debug information into the error
logs, and also show debug information on any fatal error.</font></td>
</tr>
<tr>
<td width="16%"><b><font size="2" face="Tahoma,Arial,Helvetica">debug_level</font></b></td>
<td width="84%"><font face="Tahoma,Arial,Helvetica" size="2"><input type="text" name="debug_level" value="<%cfg_debug_level%>" size="40"></font></td>
</tr>
Types of tags.

If the Config.pm record was changed to be a hash of hashes, or arrays, such that:

$self->{tag_name} = ['value', 'description'];

A Config record would then look like:

$self->{color1} = {value => '#ffffff',
description => 'Color for the background shading on the main page'};

You are already doing this for several of the options, and I wonder it can't be expanded, and make the whole menu system self generating??

It would prevent a host of errors, and loads of redundant work, and changes, since only the Config.pm file would have to change, all the other files get updated on the next generation/iteration.

I might be missing something.... but Since these data are used to generate configuration files, why not make the 'setup' stage as easy and foolproof as possible??




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

Subject Author Views Date
Thread Standard Options pugdog 3366 Oct 12, 2000, 11:38 PM
Thread Re: Standard Options
pugdog 3271 Oct 12, 2000, 11:59 PM
Thread Re: Standard Options
Alex 3249 Oct 13, 2000, 7:34 AM
Thread Re: Standard Options
pugdog 3247 Oct 13, 2000, 9:03 AM
Thread Re: Standard Options
Alex 3246 Oct 13, 2000, 9:24 AM
Thread Re: Standard Options
pugdog 3251 Oct 13, 2000, 9:38 AM
Thread Re: Standard Options
Alex 3251 Oct 13, 2000, 9:58 AM
Post Re: Standard Options
pugdog 3249 Oct 13, 2000, 10:38 AM