Different styles in different folders on Plone 3

2008-11-14
Plone CSS

views : 56

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.


StumbleUpon Toolbar

Comments

YOU said

JUST NOW and rated post with :

Have A Comment?

 
 

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

Type the characters that you see in the box (7 characters). The code can include characters 0..9 and A..Z.


  

I cannot read the characters. Generate a




copyright ©2006-2008 Milko Leporis

blog powered by LM Blog version 2.0