Switching Skins
This Tutorial applies to:
Plone 2.5.x, Plone 2.1.x
This Tutorial is intended for:
Integrators, Customizers
sirgarr
All content on one page (useful for printing, presentation mode etc.)
- Overview An overview of the tutorial.
- How Does Plone Choose a Skin? A description of the variables and processes that Plone uses to choose a skin each time you visit a page.
- Intervening to Switch a Skin A summary of the main ways you can intervene in Plone's skin-choosing process, to switch a skin.
- Making a Skin Switch Last How to make a skin switch last beyond a single REQUEST and page view.
- Use Case One: Skin By URL References for switching a skin based on URL.
- Use Case Two: Skin By Type of User Example code for allowing certain users to switch skins.
- Synchronizing Skin Layers and CSS/Javascript Resources How to ensure that the proper CSS/Javascript resources are used in different skins.
- Additional Documentation on Switching Skins References for switching skins by URL.
How to add the external method?
"So we add it as an external method ext_switchSkin to the Plone site root"
So when I get into the ZMI and "add" the external method at the Plone site root, I get four fields to fill out. I put the following in:
ID: ext_switchSkin
Title: switchSkin
Module Name: switchSkin
Function Name: ext_switchSkin
I based it a little off of this link on how to add external methods:
http://plone.org/documentation/how-to/create-and-use-an-external-method
I seem to be stuck here. What am I doing wrong?
Any help would be appreciated. :)
swich skin on url best solution
usualy i use the access roule to switch a skin for a different url. since i am concerned about performance i really feel bad in haveing a if statement on every request to my zope server. is there a better solution for that? for example:
- can i run a second zeo client and configure the skin in the zope config of that zeo client?
- can i include a setting in the squid redirect which accesses the plonesite with my custom skin? i saw something like this available for zop3 (.../++skin++MySkinName/..) ?
Change based on login status