Replace some code of the Plone collection portlet to add links color

Project Description


Change the renderer of your Plone collection portlet, trying to force a link color using a style="color: ..." attribute.

How to use

This product is for developers. It only add a catalog column (color) and change the basic Collection Plone renderer to check for this color.

Installing this won't add any real new colors in collection portlets (and we don't want ... normally color must came from site UI theme, not contents).

How support colors

You can:

Support for a color property
Add to your content types a new color method or property.
Support for a color @indexer

Add an indexer that return the color you want:

>>> from plone.indexer.decorator import indexer
>>> @indexer(IMyType)
>>>     def color(object, **kw):
...     return 'red'

See Custom indexing strategies on Plone documentation section.

The color format must be CSS valid. So: 'red', '#FF0000', '#F00' or 'rgb(255,0,0)' are all good values.

If you return a string that starts with 'class-' (like 'class-foo'), this doesn't apply the style attribute but a class="foo" attribute.


Developed with the support of S. Anna Hospital, Ferrara; S. Anna Hospital supports the PloneGov initiative.

OspFE logo


This product was developed by RedTurtle Technology team.

RedTurtle Technology Site


[ ] Internationalized

[ ] Unit tests

[X] End-user documentation

[X] Internal documentation (documentation, interfaces, etc.)

[X] Existed and maintained for at least 6 months

[X] Installs and uninstalls cleanly

[ ] Code structure follows best practice

Current Release
collective.portlet.colorcollection 0.3.0

Released Feb 13, 2013 — tested with Plone 4.2, Plone 4.1, Plone 4, Plone 3

New release and bugfix
More about this release…

Download file Get collective.portlet.colorcollection for all platforms
If you are using Plone 3.2 or higher, you probably want to install this product with buildout. See our tutorial on installing add-on products with buildout for more information.

All Releases

Version Released Description Compatibility Licenses Status
0.3.0 Feb 13, 2013 New release and bugfix More about this release…
Plone 4.2
Plone 4.1
Plone 4
Plone 3
GPL final
0.2.0 Nov 28, 2012 Fixed Plone 4 compatibility and custom portletRenderer registration More about this release…
Plone 4.2
Plone 4.1
Plone 4
Plone 3
GPL final
0.1.0 First release More about this release…
Plone 4.1
Plone 4
Plone 3
GPL beta