ColorField (0.3)
- ColorField download link: http://plone.org/products/colorfield/releases
- Homepage of ColorField: http://plone.org/products/colorfield
- ColorField repository: https://svn.plone.org/svn/collective/ColorField/
- Description source: https://svn.plone.org/svn/collective/ColorField/trunk/README.txt
A demo type is included. Set INSTALL_DEMO_TYPES = 1 in config.py to enable it. It is disabled by default.
Set OUTPUT_FORMAT in config.py of the field itself to have the color codes in HTMLColor, RGB, HexColor or PILColor. Default is HTMLColor.
Usage
-
In your custom Archetype, add:
from Products.ColorField import ColorWidget, ColorField
-
Use it like a regular field/widget in your Type's Schema.
ColorField('my_color',
default='#00FFFF',
output_format='HexColor',
widget=ColorWidget(
label='My color',
allow_brightness=True)
),