[Zope-CMF] Forcing skin change

seb bacon seb@jamkit.com
Thu, 9 Aug 2001 11:10:14 +0100


It's probably a cookie problem.  Are some of your computers set up to
refuse cookies?  Are you expecting the skin to move with an account?
You can check which cookies are set by examining the REQUEST object. 

seb

* Parish, Yoav <yoav.parish@imes.mavt.ethz.ch> [010809 01:54]:
> Hello seb,
>  
> thank you for your help. Unfortunately, the command wont work on every
> skin 
> change. Depending on the computer I use for entering the portal the
> command will
> simply show the original skin, or even worse: it mixes the two different
> skins...
>  
> could you tell me where to look for the problem...
>  
> thanx
> yogi
> 
> -----Ursprüngliche Nachricht----- 
> Von: seb bacon 
> Gesendet: Di 07.08.2001 18:20 
> 
> You need to set the variable before the page is rendered.  You could 
> get them to enter their chosen skin like this: 
> 
>  <a href="yourpage?portal_skin=other_skinname">other skin</a> 
> 
> and you should also set a cookie to make the skin selection persist, 
> something like 
> 
>  <dtml-call
> "RESPONSE.setCookie('portal_skin','other_skinname',path='/')"> 
> 
> seb 
> 
> * Parish, Yoav <yoav.parish@imes.mavt.ethz.ch> [010807 15:13]: 
> > How can I force a change of the skin for the user? 
> > <dtml-call REQUEST.set('portal_skin', 'other_skinname')> 
> > doesnt seem to work 
> > 
> > thanx 
> > y. 
>