[Moin-user] I want a "changing logo" - browser cache problem

Henryk Gerlach hgerlach at gmx.de
Thu Jun 21 13:52:17 EDT 2007


> > I was thinking about this solution -- but how !?
> 
> The header and footer config vars can contain python code, so if you 
> implement your stuff there, you could change the value of your logo 
> configuration. The python code needed could be directly entered into 
> wikiconfig.

So Thomas sugessts putting somethin like

    import random
    pics=[u"http://xyz.de/a.png", u"http://xyz.de/b.png"]
    logo_string= u'<img src="' + random.choice(pics,1) + u'" />' 

in your wikiconfig instead of 
    logo_string= u'<img src="fixed.png" />' 


Cheers,
   Henryk
-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail




More information about the Moin-user mailing list