smart color picker widget for Archetypes
Project description
ABOUT THIS PRODUCT
SmartColorWidget is a user-friendly color picker widget for Archetypes. It allow quick and easy color selection from 3 different ways:
HTML color value
Color table and lightness bar slider
Hue/Lightness/Saturation fields
The 3 inputs modes are javascript-wired and dynamically change when anything is modified
A demo type is included. Set INSTALL_DEMO_TYPES = 1 in config.py to enable it.
DEPENDENCIES
Plone 3.1+ (or Plone3.0.x with jquery.js already installed)
Note :
jquery.js must be installed in portal_javascripts to make this SmartColorWidget version working.
with Plone 3.1 and more, jquery is already installed by default.
Installation
read docs/Install to install the package in your zope instance using buildout or easy_install
Install the skin in your Plone Site with the Quickinstaller tool
Usage
In your custom Archetype, add:
from Products.SmartColorWidget.Widget import SmartColorWidgetUse it like a regular field/widget in your Type’s Schema.
Example:
StringField('color', default='#00FFFF', searchable=0, required=0, widget=SmartColorWidget( label='Color', ) ),
Credits
This product was built by:
Pierre Gayvallet “support@ingeniweb.com”:mailto:support@ingeniweb.com
Thanks
- The jQuery team, for their powerfull javascript library
- EasyRGB, for the colors transformation formulas
- Roland Fasching “rof@sterngasse.at”:mailto:rof@sterngasse.at for the widget idea from ATColorPickerWidget
Changelog
SVN/UNRELEASED
1.0.3
jquery-1.1.2.js removed from portal_javascripts (already installed in Plone3.1)
css colors (white, red, black …) are changed in hexadecimal colors at first field edition
product is packaged for buildout and easy_install
added configure.zcml and profile installation
1.0.2
Fixed CMFPermissions import for CMF 2.0 / Plone 3 (zegor)
1.0.1
Renamed jquery.js to jquery-1.1.2.js to avoid potential problems with other products versions of jquery
1.0.0 - Initial release
Initial release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Products.SmartColorWidget-1.0.3.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb130a2c0bce03a7b0dc2577d269134f1c99902d0f4d7ee56c7701fc206b3778 |
|
MD5 | 279cee9d2de4fc9f02535faa63454fb9 |
|
BLAKE2b-256 | fc80e73b05a15dc6c5cda8ebfc3d2328bb7c0906ca9051b2354ebee832fbb348 |
Hashes for Products.SmartColorWidget-1.0.3-py2.4.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | a24b1d6cf022aa54be767a260cabc3869e01a49392d81eeaa5bcf9578a1c6b09 |
|
MD5 | ede55b9f120d428d1faff62c3fb52130 |
|
BLAKE2b-256 | 787b4bb09f14c56901509fa5b440b4f963540eef2d77cf84af1be7ecb7bf7001 |