Personal tools
You are here: Home Plone products ColorField

ColorField (0.2)

Document Actions
Released on 2007-09-19 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.

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. 1. Install as usual in your Products folder
  2. 2. Install in your Plone Site with the Quickinstaller tool
  3. 3. In your custom Archetype, add::
    from Products.ColorField import ColorWidget, ColorField
  4. 4. Use it like a regular field/widget in your Type's Schema. There is an included example.
  5. 5. The widget takes a boolean parameter to pick colors on brightness too::
    allow_brightness = True

Example::

ColorField('my_color',
        default='#00FFFF',
        output_format='HexColor',
        widget=ColorWidget(
                 label='My color',
                allow_brightness=True)
),


There are currently no items in this folder.

Plone Themes
  • Schools Plone Theme
  • Lite Plone Theme
  • Techlight Plone Theme
 

Powered by Plone