![Page 1: Plone Radical Reskinning When one size doesn’t fit all](https://reader035.vdocuments.us/reader035/viewer/2022070307/551b8620550346167e8b4cdd/html5/thumbnails/1.jpg)
Plone Radical Reskinning
When one size doesn’t fit all
![Page 2: Plone Radical Reskinning When one size doesn’t fit all](https://reader035.vdocuments.us/reader035/viewer/2022070307/551b8620550346167e8b4cdd/html5/thumbnails/2.jpg)
Plone ‘As-Is’ Use Case
Community siteMany content authorsPublic & edit faces similarCosts: Bulky pages Complex, expensive templates Hard to cache Design constrained by edit interface needs
![Page 3: Plone Radical Reskinning When one size doesn’t fit all](https://reader035.vdocuments.us/reader035/viewer/2022070307/551b8620550346167e8b4cdd/html5/thumbnails/3.jpg)
Split-Use Case
Public/Private needs different
Many viewers, few authors
Public & edit faces may differ
Benefits: Lighter, simpler public pages Public site may be aggressively cached More flexible design possible
![Page 4: Plone Radical Reskinning When one size doesn’t fit all](https://reader035.vdocuments.us/reader035/viewer/2022070307/551b8620550346167e8b4cdd/html5/thumbnails/4.jpg)
Public Homepage
![Page 5: Plone Radical Reskinning When one size doesn’t fit all](https://reader035.vdocuments.us/reader035/viewer/2022070307/551b8620550346167e8b4cdd/html5/thumbnails/5.jpg)
Public Interior Page
![Page 6: Plone Radical Reskinning When one size doesn’t fit all](https://reader035.vdocuments.us/reader035/viewer/2022070307/551b8620550346167e8b4cdd/html5/thumbnails/6.jpg)
“Edit” View
![Page 7: Plone Radical Reskinning When one size doesn’t fit all](https://reader035.vdocuments.us/reader035/viewer/2022070307/551b8620550346167e8b4cdd/html5/thumbnails/7.jpg)
Plone page in 36KB
![Page 8: Plone Radical Reskinning When one size doesn’t fit all](https://reader035.vdocuments.us/reader035/viewer/2022070307/551b8620550346167e8b4cdd/html5/thumbnails/8.jpg)
Access Rule
if context.REQUEST.BASE0.split('/')[2]. \ split('.')[0] \ not in ['edit','localhost:2080']: context.portal_url.getPortalObject(). \ changeSkin('public_skin')
![Page 9: Plone Radical Reskinning When one size doesn’t fit all](https://reader035.vdocuments.us/reader035/viewer/2022070307/551b8620550346167e8b4cdd/html5/thumbnails/9.jpg)
Standard Warning
WARNING: Access Rules are powerful, and can temporarily disable Zope access! Don't use them unless you have read all about them and know how to recover from mistakes!
![Page 10: Plone Radical Reskinning When one size doesn’t fit all](https://reader035.vdocuments.us/reader035/viewer/2022070307/551b8620550346167e8b4cdd/html5/thumbnails/10.jpg)
Access Rule Rescue
# Directive: suppress-all-access-rules## Description:# If this directive is set to on, no access rules in your Zope site# will be executed. This is useful if you "lock yourself out" of a# particular part of your site by setting an improper access rule.## Default: off## Example:## suppress-all-access-rules on
![Page 11: Plone Radical Reskinning When one size doesn’t fit all](https://reader035.vdocuments.us/reader035/viewer/2022070307/551b8620550346167e8b4cdd/html5/thumbnails/11.jpg)
Section Skinning Example #1
![Page 12: Plone Radical Reskinning When one size doesn’t fit all](https://reader035.vdocuments.us/reader035/viewer/2022070307/551b8620550346167e8b4cdd/html5/thumbnails/12.jpg)
Section Skinning #2
![Page 13: Plone Radical Reskinning When one size doesn’t fit all](https://reader035.vdocuments.us/reader035/viewer/2022070307/551b8620550346167e8b4cdd/html5/thumbnails/13.jpg)
Implementing Section Skin
<style type="text/css" tal:replace="structure here/section_css | nothing"></style>
From main template of public skin:
![Page 14: Plone Radical Reskinning When one size doesn’t fit all](https://reader035.vdocuments.us/reader035/viewer/2022070307/551b8620550346167e8b4cdd/html5/thumbnails/14.jpg)
Tailored Search