Hi,
I'm am working on a plone 3 website that has several "subsites", each
of them have a different skin (in portal_skins) associated with it.
I also need to customize different viewlets (such as plone.footer) for
each skin/site.
I got it to work, but I noticed a strange behavior reguarding the
viewlets, and I'm wondering if it is a bug, or if it is me doing
nomething wrong...
First of all, I made a package for each site/skin, and created a
IThemeSpecific interface for each of them. The configuration looks
like this :
<interface
interface=".interfaces.IThemeSpecific"
type="zope.publisher.interfaces.browser.IBrowserSkinType"
name="mySkinName"
/>
Then, I use apache with a different VHost for each site, to add ?
plone_skin=mySkinName to the request.
This works great with apache/mod_proxy, but I noticed that it doesn't
work by calling Zope directly.
For example, if I have 3 skins configured : Plone Default, skin1 and
skin2. skin1 and skin2 have different CSS, and each of them have a
custom plone_footer.
Here's what I get :
If I use VirtualHostBase in the URL to mimic an apache mod_proxy
request :
http://mysite.com/VirtualHostBase/http/promo-tent.l3i.ca:80/ssport/VirtualHostRoot/?plone_skin=skin2
skin : skin2 (OK) - footer : skin2 (OK)
http://mysite.com/VirtualHostBase/http/promo-tent.l3i.ca:80/ssport/VirtualHostRoot/?plone_skin=skin1
skin : skin1 (OK) - footer : skin1 (OK)
Now if I don't use VirtualHostBase :
http://mysite.com/ssport/?plone_skin=skin2
skin : skin2 (OK) - footer : Plone default (??)
http://ammysite.com/ssport/?plone_skin=skin1
skin : skin1 (OK) - footer : Plone default (??)
It seems that without using the VHost, the viewlet for the skin
selected as default in portal_skins is always displayed, no matter
what the plone_skin variable is set to. But the correct skin templates
and CSS are displayed.
This behavior seems really strange to me, but maybe I'm doing
something wrong ?
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers