Skip to main content

A Plone addon for labels.

Project description

collective.labels

A Plone addon for labels.

Containers, Folders for example, can be marked as label container. For each label container a set of labels with colors can be defined. Items whithin this container which support labelling can then be labelled with one or more labels.

Fork of ftw.labels that was unmaintained see https://github.com/4teamwork/ftw.labels/issues/67

Screenshots

Managing labels on the label container (ILabelJar):

https://raw.github.com/collective/collective.labels/master/docs/label_jar.png

Set label for a content (ILabelSupport):

https://raw.github.com/collective/collective.labels/master/docs/label_support.png

Installation

  • Add collective.labels to your buildout configuration:

[instance]
eggs +=
    collective.labels
  • Install the generic setup profile of collective.labels.

Usage / Integration

Add the ILabelJar marker interface to any container class you want:

<class class="Products.ATContentTypes.content.folder.ATFolder">
    <implements interface="collective.labels.interfaces.ILabelRoot" />
</class>

For objects providing ILabelJar a left-column-portlet is added on the root of the Plone site which allows to manage labels.

Add the ILabelSupport marker interface to any item you want to be able to set labels on:

<class class="plone.app.blob.content.ATBlob">
    <implements interface="collective.labels.interfaces.ILabelSupport" />
</class>

For objects providing ILabelSupport a right-column-portlet is added on the root of the Plone site which allows to manage labels.

Add the ILabelJarChild marker interface to any container class to display the labels stored in a parents ILabelJar

<class class="Products.ATContentTypes.content.folder.ATFolder">
    <implements interface="collective.labels.interfaces.ILabelJarChild" />
</class>

For objects providing ILabelJarChild you can manage and store the same labels as defined in the ILabelJar content without defining a new ILabelRoot

Uninstall

The package provides an uninstall mechanism. Use Plone’s addon control panel or portal_quickInstaller to uninstall the package.

Changelog

3.0.0a1 (2025-09-19)

  • Rename the package into collective.labels [mpeeters]

2.0.1 (2019-11-26)

  • Corrected bug when removing multiple personal labels, if one is not assigned. [sgeulette]

2.0.0 (2019-10-15)

  • Replaced string by list parameter in ILabeling pers_update method. [sgeulette]

1.3.1 (2018-10-02)

  • Add upgrade step to migrate from 1.2.x version to 1.3.1 (Transform PersistentList in PersistentMapping and Add ‘by_user’ key to False in jar) [anuyens]

1.3.0 (2018-04-25)

  • Labels can also be set user by user, not only globally. [sgeulette]

1.2.1 (2018-02-12)

  • Set applyPrefix=”True” for “++resource++collective.labels/select2.css” in cssregistry.xml. [gbastien]

1.2.0 (2018-02-02)

  • Added French translations. [gbastien]

  • Redirect to HTTP_REFERER instead context.absolute_url after a label is added using the labejar portlet. [gbastien]

  • Display ‘Edit labels’ title when hovering edit labels icon. [gbastien]

1.1.1 (2017-02-09)

  • Fix labeljar portlet if you use it without collective.table. The javascript for the collective.table-integration was executed even if you don’t have an collective.table. [elioschmutz]

1.1.0 (2016-03-21)

1.0.2 (2014-06-24)

  • Hide portlet for unprivileged users when there are no labels. [jone]

1.0.1 (2014-06-23)

  • Fix edit label link permission check in labels jar portlet. [jone]

  • Fix edit link permission check in labeling viewlet. [jone]

1.0.0 (2014-06-18)

  • Initial implementation. [elioschmutz, jone]

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

collective.labels-3.0.0a1.tar.gz (309.2 kB view details)

Uploaded Source

File details

Details for the file collective.labels-3.0.0a1.tar.gz.

File metadata

  • Download URL: collective.labels-3.0.0a1.tar.gz
  • Upload date:
  • Size: 309.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.23.0 setuptools/65.7.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.8.18

File hashes

Hashes for collective.labels-3.0.0a1.tar.gz
Algorithm Hash digest
SHA256 b49765cd9ccc9b03bf72f282633e3feec95f596d58118c8ab07c49066d6e35e3
MD5 8a7dbc82fef20536bd5c6eb0e8c84fda
BLAKE2b-256 41634fad5e3009228105ba426f72edecdf0e2f5b0079a030502c3f8a7672edb7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page