[Moin-user] I want a "changing logo" - browser cache problem
Sebastian Haase
sebastian.haase at mdc-berlin.de
Fri Jun 22 04:40:40 EDT 2007
On 6/21/07, Henryk Gerlach <hgerlach at gmx.de> wrote:
> > > 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
> --
Thanks - I tried something like this -- but it turns out that the
wikiconfig is of course only evaluated once -- so I would have to
restart the wiki-engine every time I change the logo ... don't like
that ...
-Sebastian
More information about the Moin-user
mailing list