[Zope-CMF] Lost in SkinSpace!

Kevin Carlson khcarlso@bellsouth.net
Fri, 28 Jun 2002 13:06:32 -0400


Jon,

I did a bit of testing and I've got a pseudo-solution working.  If I call a
DTML method that contains the following three lines of code, the skin is
successfully switched:

<dtml-call "REQUEST['RESPONSE'].setCookie('portal_skin', 'Test')">
<dtml-call setupCurrentSkin>
<dtml-call "REQUEST['RESPONSE'].redirect('index_html')">

This will change to the 'Test' skin and redirect to the index_html method
contained therein.

Hope this helps,

Kevin

-----Original Message-----
From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf
Of Jon Edwards
Sent: Friday, June 28, 2002 12:14 PM
To: Roger Espinosa
Cc: Zope-Cmf
Subject: RE: [Zope-CMF] Lost in SkinSpace!


Thanks for the pointer, Roger. I check Zopelabs regularly, but somehow
missed that one! :-)

I kinda follow how that recipe works, but I think it would be very difficult
to "automate" it, rather than just setting it up once and leaving it. ie. I
want to give the site-manager a dropdown on the folder_edit_form, where they
can pick from a list of skins, and change the selection at any time, if
necessary.

The comment from dreamcatcher at the bottom is more what I'm after. I'm not
sure, but I think my proposed hack would have the same effect, as the code
he suggests modifying calls the getSkin function I was going to change?

I'm happy to hack/subclass source code, it's just that in this case I'm not
sure where's the best place to do the hack, and whether it will have any
unintended effects! :-)

Cheers, Jon

> -----Original Message-----
> From: Roger Espinosa [mailto:roger@umich.edu]
> Sent: 28 June 2002 16:55
> To: Jon Edwards
> Subject: RE: [Zope-CMF] Lost in SkinSpace!
>
>
>
> Mm. There was a recipe on www.zopelabs.com that talked about setting skins
> on a per-folder basis:
>
> http://www.zopelabs.com/cookbook/1016693454
>
> OTOH, I read your initial message as wanting something different (maybe
> not! It's a chaotic day here! :)
>
> Roger



_______________________________________________
Zope-CMF maillist  -  Zope-CMF@zope.org
http://lists.zope.org/mailman/listinfo/zope-cmf

See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests