Add support for taxonomies to Plone contents as a news tag-like field
Table of contents
This product add a new field to all Plone contents (someway similar to the keyword field) that allow to select one or more taxonomies to reference.
A Taxonomy is commonly like normal folder and you can create them all around the site. They gives only some differences when you add additional contents inside them (but to select a taxonomy for a content you don’t need that the content is inside it).
Also the taxonomy support must be explicitly enabled on the site root and/or in one or many of the site’s subsections. In this way you can have different taxonomies set in different areas of the site.
The list of taxonomies selectable on simple contents is filtered locally if there are different sections activated.
The activation to one section block the inheritance of other taxonomies from upper levels.
Filtering policies are the following:
To activate the taxonomy level you can access the “Add to taxonomy roots” in the “Action” menu.
Create Taxonomy folders normally in the site.
You can also mark any other object as a Taxonomy-like but to do this you need to manually apply the collective.taxonomysupport.interfaces.IFolderTaxonomy interface.
This product add also a new collection criteria (Site Areas) for easilly use taxonomies in (old-style) collections.
Taxonomies stores 2 indexes in catalog: getSiteAreas and SiteAreas.
The first index stores a list of uids fo selected taxonomies of an object, and the second (SiteAreas) stores the titles of selected taxonomies, for a human-usage. If you need to update the all catalog (or even rebuild it), “SiteAreas” indexes and metadata will be partially inconsistent because the indexer method make a catalog query to get the taxonomy right titles, so you need to do 2 more steps:
This product has been tested on:
Developed with the support of Regione Emilia Romagna;
Regione Emilia Romagna supports the PloneGov initiative.