Click here to register.
      
irc://irc.freenode.net#webgui

iPhoneGuy: WebGUI is a pile of crap.
rizen: If WebGUI is such a pile of crap, why do you use it?
iPhoneGuy: Because it's the best pile of crap out there.

If this is what people who hate us are saying, imagine what people who love us will say. Come join us on IRC.


     Discuss > WebGUI Dev

Style Variables - Different colors schemes on different parts of the site

User nicklous20
Date 8/12/2005 2:51 pm
Views 1589
Rating 3    Rate [
|
]
Previous · Next
User Message
nicklous20

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



Back to Top
Rate [
|
]
 
 
nicklous20

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



Back to Top
Rate [
|
]
 
 
     Discuss > WebGUI Dev




Re: Pagination and Navigation Menus. by colink - Thu @ 04:05pm

Re: Corrupt Asset Tree by mwille64 - Thu @ 02:12pm

Pagination and Navigation Menus. by eleger81 - Thu @ 11:52am

Re: Corrupt Asset Tree by preaction - Thu @ 11:44am

Corrupt Asset Tree by mwille64 - Thu @ 11:18am

Smoketest For nightly_2008-07-24 by Visitor - Thu @ 01:39am

Re: Hello! by crythias - Wed @ 01:13pm

Testing status, July 23, 2008 by colink - Wed @ 10:53am

Re: Paragarph issue in link lists by bernd - Wed @ 09:11am

Re: Dutch translation 7.5.17 done by Klaus - Wed @ 04:28am

Re: Hello! by Klaus - Wed @ 04:23am

Smoketest For nightly_2008-07-23 by Visitor - Wed @ 01:38am

Hello! by crythias - Tue @ 09:07pm

Re: Duplicate web site by techwriter - Tue @ 10:47am

Dutch translation 7.5.17 done by bartjol - Tue @ 09:13am