Skip to Content.
Sympa Menu

en - Re: [sympa-users] Color editing

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Serge Aumont <address@concealed>
  • To: "Roger B.A. Klorese" <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-users] Color editing
  • Date: Wed, 05 May 2010 15:33:57 +0200

On 05/05/2010 09:50 AM, Roger B.A. Klorese wrote:
address@concealed">FJ!! -- who is working on our Sympa implementation -- writes:

I created a new CSS skin for Sympa 6.0.1 that will be used for
multiple virtual installations. This skin was developed to simplify
the appearance of Sympa appropriate to the target audiences. For this
I had to change the default colors used in the CSS.

We still want to offer our clients the opportunity to recolor their
installations, but it does mean that the proper defaults for our look
have to be filled in for them to start from. However, looking at the
code that serves uphttp://rootserver/index.fcgi/skinsedit  I have no
idea where these default colors for color_0 through color_15 are set.
Contrary to the documentation on the webpage, the robots.conf file
does not contain values for color_0 to color_15, only for text,
darker, and shadow colors. Searching through the Sympa files for
#7A7EC9, the default color_1 value in Sympa, did also not tell me
where these values are coming from in the code after a standard
install. They are only to be found in the static CSS files.

What are the files where these colors are set for a default install,
and which should be changed after a reskinning?
You should
  • install a default css.tt2 template in  ~sympa/etc/web_tt2/css.tt2 (it will replace the css.tt2 coming from Sympa distribution)
  • This CS must use colours as vars [% color_0 %] etc
  • theses default colours parameter should be defined as you want in /etc/sympa.conf. This will define new default colours the will replace the default defaults that are hard coded into ~sympa/bin/confdef.pm

This way, by default the CSS will use the colors you have defined. When editing a colours using the appropriate admin form, the listmaster store new colours values into database. Theses values replace for its Sympa web interface the default you have defined for all virtual servers.

Then it is strongly recommended to export the dynamically computed CSS file to a static file. Indeed this is un important optimization.

Hope this help.

Serge




Archive powered by MHonArc 2.6.19+.

Top of Page