|
Date: 8/12/2005 2:51 pm · Subject: Style Variables - Different colors schemes on different parts of the site · Rating: 3
Hello,
I need some votes here.
My company has developed a macro for WebGUI that replaces "variables" in a CSS style sheet with different values, depending on which style is assigned to a page. In this way, I can assign different colors to various pages on the site without having to maintain several different CSS style sheets.
So, the only line I have in the style.styleSheet field looks something like:
style_name");
Currently, the macro looks up "style_name" using hard-coded if/then/else statements, and assigns variable values based on "style_name".
It works great. However, I now need to store the color variable information in a way that is most usable to the web master. As I mentioned, the variables are currently hard-coded in Perl (which is not acceptable from a site maintenance standpoint).
I'm currently thinking that the most direct way to make this usable would be: to extend the "Manage Styles" screen so that a list of variables (and their values) is associated with each individual style.
However, I am also thinking that WebGUI needs a "Site Profile" which would work exactly like "User Profiles" but would allow Macros and other parts of the system to check profile fields to make important decisions.
For example, A travel booking site might need to take down their booking engine for a while. It would be good to have a system-wide flag that means "booking engine unavailable" so that links could be dynamically turned off or web page contents could change depending on the availability of the online booking system (for example, what is normally a link to the booking system could instead say "Call us at 555-1212 to book" so that the end-user doesn't even have to be aware of system problems.
So, should I stay focused on my styleSheet problem and produce the mod as described, should I address my Site Variables problem simultaneously, and end up with two mods (one of which depends on the other), or do any of you have better ideas about how to approach these problems?
Since I intend to post the work after its done, I thought the community should have some input.
-Nick
|