Smart color picker widget for Archetypes
Project description
SmartColorWidget
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.
Requirements
Plone 3.1+,
Plone 3.0 users must add collective.js.jquery to the eggs list in their buildout.cfg.
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 SmartColorWidget
Use 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.
Thanks
The jQuery team, for their powerfull javascript library.
EasyRGB, for the colors transformation formulas.
Roland Fasching for the widget idea from ATColorPickerWidget.
Changelog
1.1.0
Removing included jQuery. We use the jQuery that ships with Plone
Removing CMF skins layer. All’s going to browser resources.
Upgrade step
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Products.SmartColorWidget-1.1.0.tar.gz.
File metadata
- Download URL: Products.SmartColorWidget-1.1.0.tar.gz
- Upload date:
- Size: 57.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52640564f9e7a8ca7fbc32633178f867190fb7f209fb8e1492fdcc721a67f901
|
|
| MD5 |
121dfff0b99bceeda8122a21dbfd8d94
|
|
| BLAKE2b-256 |
07750d50592673472984b2e10e819e2b7c77c65e18c083bf7bf4e42de5c068a0
|
File details
Details for the file Products.SmartColorWidget-1.1.0-py2.4.egg.
File metadata
- Download URL: Products.SmartColorWidget-1.1.0-py2.4.egg
- Upload date:
- Size: 67.0 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d462deaccf82f9c30c533af262f47855e76bbf38188ac6560e038e829e11185f
|
|
| MD5 |
0efb6e7027e8a7c76c9100aeaf4e7f9c
|
|
| BLAKE2b-256 |
6d36b73bd33ff8df2ac9c87bfaa411f1e4799ed0d111c64fd616dc2bfbb45cab
|