Skip to content

sgeulette/ftw.labels

 
 

Repository files navigation

ftw.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.

Screenshots

Managing labels on the label container (ILabelJar):

image

Set label for a content (ILabelSupport):

image

Installation

  • Add ftw.labels to your buildout configuration:
[instance]
eggs +=
    ftw.labels
  • Install the generic setup profile of ftw.labels.

Usage / Integration

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

<class class="Products.ATContentTypes.content.folder.ATFolder">
    <implements interface="ftw.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="ftw.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="ftw.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.

This package is copyright by 4teamwork.

ftw.labels is licensed under GNU General Public License, version 2.

About

A Plone addon for labels.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 71.4%
  • CSS 26.4%
  • JavaScript 2.2%