[Zope-PTK] Bugreport: When overriding skin in dtml, stylesheet won't load

Sigve Tjora sigve@tjora.no
Mon, 12 Feb 2001 23:24:19 +0100 (CET)


Hi!

I tried to force a specific skin onto an object with the code

<dtml-call "REQUEST.set(portal_skins.getRequestVarname(), 'Nouvelle')">
<dtml-call "setupCurrentSkin(REQUEST)">

at the top of the document to set the skin to 'Nouvelle'

It the browser has the skin-cookie set to "Default" the browser will not
get the stylesheet when it isn't inline (eg. it works for Netscape but not
IE). This is due to the path portal/nouvelle_stylesheet can't be
found in the stylesheet "Basic" that the browser requested because of the
cookie. In the current setup the PTK don't know which skin a request is
for, when the users skin-perference is overridden at the server.

I hope somebody has a fix for this.

mvh Sigve Tjora