You are here: Home Plone products ColorField

ColorField (0.3)

1
by Olha Pelishok last modified 2010-03-31
0.0
0.0
0.0
0.0
Released on 2009-06-24 by Roland Fasching for Plone 3.0 under GPL - GNU General Public License available for All platforms.
Software development stage: stable
ColorField is a color picker and converter for Plone Archetypes.
ColorField

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

  1. In your custom Archetype, add:

    from Products.ColorField import ColorWidget, ColorField

  2. 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)

    ),

     

     
Document Actions
Powered by Plone