AW: [Zope-CMF] Another Zope/CMF site
Tim Hoffman
timhoffman@cams.wa.gov.au
23 May 2002 09:07:42 +0800
Hi
In our earlier CMF based sites, we used to set the portal_skin cookie
explicitly when changing the skin.
What we found however was many proxies, aggressive caching on client etc
meant that without shift-refresh we couldn't always get the same
page with the new skin in the browser as the URL hadn't changed
and we do want systems to cache pages.
So for anonymous skin changes where most people won't use the alternate
skin, I decided to put the skin variable in the path, and use a site
access rule to grab it out of the URL,retrieve it if it is there, then
set the skin explicitly, then remove the arg from the traversal path,
but put it back into the siteroot, so that it automagically appears in
all URLS generated by absolute_url calls.
Regards
Tim
On Wed, 2002-05-22 at 18:28, Luca Olivetti wrote:
> Tim Hoffman wrote:
> > Crikey I am a d!ckhead
> >=20
> > The URL should be www.innovation.wa.gov.au
>=20
> Just curious: the way you change between enhanced/text only seems=20
> strange (what hit me is the use of ';' in the urls, like:
> http://www.innovation.wa.gov.au/Innovation/portal_skin;Text_only/About/01=
_about_waic
> ).
> How does it work?
> --=20
> Luca Olivetti
> Wetron Automatizaci=F3n S.A. http://www.wetron.es/
> Tel. +34 93 5883004 Fax +34 93 5883007