Personal tools
You are here: Home Documentation Tutorials DIYPloneStyle: Creating a Custom Style for Plone Working with Base Properties
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

Working with Base Properties

Editing base_properties.props for quick customization.

David Convent

This tutorial will teach you how DIYPloneStyle can be used as a base for creating a custom style product for Plone 2.1 or Plone 2.5 that adds to a portal a new skin selection and makes use of the new stylesheet and javascript registries.
Page 6 of 10.

Customizing base_properties.props is the easiest way to modify the style attributes of Plone UI elements. But it has its caveat: due to the way the skins tool works, you must have all default Plone base properties in the file, even if you plan to customize only a small set of them. If you remove some of the properties from the file, Plone won't be able to access them anymore.

All this doesn't make the base_properties.props approach ideal for maintenance, upgrades and customization. That's one of the reasons why it will be gradually phased out in Plone (also for avoiding the use of DTML in CSS files).
I am not yet aware of how and when this will be implemented, so check for further updates of this paragraph.

You can find more information about the Plone pre-defined properties in the file CMFPlone/skins/plone_styles/ploneCustom.css.

You may need to use your own properties in addition to the ones that are pre-defined in Plone. Instead of adding new properties to base_properties.props, it is probably better practice to create a new .props file in your skin layer and to register a stylesheet that uses it (instead of the base_properties one - see in the original DIYPloneStyle/skins/diystyle/renameThisFile.css.dtml DTML code).

 
by David Convent last modified June 10, 2006 - 00:25 All content is copyright Plone Foundation and the individual contributors.

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by