Different styles in different folders on Plone 3
If you want to apply different styles for different folders on your Plone 3 site then this is what you should do:
1. look at source code of generated page and look for body tag and it should have some classes, one of those classes starts with section-..., that class tells you the folder that contains your page, note that page in root folder will not have this section-... class
2. when you have class names just make custom styles with CSS that will override the original and that's it, but make shore that classes definitions that override are bellow classes definitions that are being overridden in CSS file
This works for one level of folders, if you need to apply different styles to folders with more than one level of depth you need to override the getSectionFromURL, more about this you can find at Alex Clark's blog.
1. look at source code of generated page and look for body tag and it should have some classes, one of those classes starts with section-..., that class tells you the folder that contains your page, note that page in root folder will not have this section-... class
2. when you have class names just make custom styles with CSS that will override the original and that's it, but make shore that classes definitions that override are bellow classes definitions that are being overridden in CSS file
This works for one level of folders, if you need to apply different styles to folders with more than one level of depth you need to override the getSectionFromURL, more about this you can find at Alex Clark's blog.




2008-11-14

YOU said