Skip to main content

Introduction

collective.z3cform.colorpicker provides a color picker widget, which uses the Browser native color input.

https://raw.githubusercontent.com/collective/collective.z3cform.colorpicker/master/screenshot.png

Requirements

  • Plone >= 5.0

  • plone.app.z3cform

For previous Plone versions use a version collective.z3cform.colorpicker less than 2.x

Installation

Install collective.z3cform.colorpicker by adding it to your buildout:

[buildout]

...

eggs =
    collective.z3cform.colorpicker

and then running bin/buildout

or installing it via pip install collective.z3cform.colorpicker

Usage

You can use this widget setting the “widgetFactory” property of a form field:

from z3c.form import form, field
from collective.z3cform.colorpicker import Color

class IColorForm(interface.Interface):
    color = Color(
        title=u"Color",
        description=u"",
        required=False,
        default="#ff0000"
    )


class ColorForm(form.Form):
    fields = field.Fields(IColorForm)
    ...

for more information see demo directory in the package sources.

Contributors

  • Giorgio Borelli - gborelli, Original Author

  • Silvio Tomatis - silviot

  • Ramon Navarro Bosch - bloodbare

  • Maurits van Rees - maurits

  • Leonardo J. Caballero G. - macagua

Changelog

4.0.0 (2026-06-17)

Breaking changes:

  • Replace pkg_resources namespace with PEP 420 native namespace. Support only Plone 6.2 and Python 3.10+. (#3928)

3.0.1 (2023-10-26)

  • fix GS breaking because of empty registry.xml file [MTango]

3.0.0 (2023-07-24)

  • Move to native input color field, which is supported by all moderns browsers [MrTango]

  • Plone compatibility [MrTango]

2.1.0 (2021-09-17)

  • Python 3 support. [espen]

2.0 (2017-12-21)

  • Added Color and ColorAlpha fields for colorpicker widgets [giorgio]

  • Removed JPicker and farbastic javascripts [gborelli]

  • Added colorpicker patterns based on bootstrap-colorpicker [gborelli]

  • Added plone5.0 resource registry support [gborelli]

  • Added Docker configuration for development [gborelli]

  • Improved demo page - http://<yourplonesite>/@@colorpicker-demo [gborelli]

1.4 (2015-11-11)

  • Added Dutch translations. [maurits]

  • Made the close button translatable. Found with i18ndude find-untranslated .. [maurits]

1.3 (2015-10-05)

  • Remove from jpicker js file the bad chars from the beginning [bloodbare]

  • Renamed txt files to rst, without symlinks. Symlinks can give installation problems, due to either the symlink or the original file missing from the distribution or being empty, because the link can end up the wrong way around. Fixes issue #1. [maurits]

1.2 (2015-05-02)

  • Updated classifiers list for package [macagua]

  • Added Spanish translation [macagua]

1.1 (2013-06-02)

  • fix MANIFEST.in [gborelli]

1.0 (2013-06-02)

  • add z3cform_colorpicker.js to initialize JPicker widget [gborelli]

  • add internationalization support [gborelli]

  • add css and javascript to Plone registry in order to make html valid [gborelli]

  • add profile to install colorpicker package [gborelli]

  • change some jpicker styles [gborelli]

  • update jpicker to v1.1.6 [gborelli]

  • egg layout refactoring [gborelli]

  • change Browser import from Testing.testbrowser [gborelli]

0.2 (2010-10-31)

  • include jPicker widget for alpha transparency support [gborelli]

0.1 (2009-06-19)

  • Initial release

Release files for collective.z3cform.colorpicker 4.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for collective.z3cform.colorpicker 4.0.0
File Size Uploaded
collective_z3cform_colorpicker-4.0.0.tar.gz 12.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for collective.z3cform.colorpicker 4.0.0
File Interpreter ABI Platform
collective_z3cform_colorpicker-4.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.3 kB

Release files / collective_z3cform_colorpicker-4.0.0.tar.gz

Download URL collective_z3cform_colorpicker-4.0.0.tar.gz
Size 12.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e0c3e6668156c860b87306133153b4e86e7e00078aa299fba15b596266a85762
BLAKE2b-256 checksum
How to use checksums
631efb3268e145a3df14cb8f42bafa27de71bc66204c5c01e3d9dfb21066f689
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / collective_z3cform_colorpicker-4.0.0-py3-none-any.whl

Download URL collective_z3cform_colorpicker-4.0.0-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62d5ae720615591df466e9c0d14062b97bed6ad518c39373c5b52ea4623cd28b
BLAKE2b-256 checksum
How to use checksums
58d47db7ae1e0d5e83f2aa3629d18d06099d568e5ebc133bb739d6859c29d622
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release history Release notifications | RSS feed

This release

4.0.0 This release

2 release files

3.0.1

2 release files

3.0.0

1 release file

2.1.0

1 release file

2.0

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page