Virtual tree categories/keywords for Plone
This project aims to virtualize Plone default keywords (categories), which are flat, to the tree. Contains Archetypes widget, based on InAndOut widget, which replaces Plone’s default widget for categories and contains configlet which allows to assign flat keywords to virtual tree defined in the configlet.
Site manager defines virtual tree nodes and assigns keywords to the nodes. One keyword may be assigned to any number of nodes (0-all).
The controlpanel contains checkbox, which allows to set the VirtualTreeCategories widget as default widget for the Subject field of all Archetypes based content types.
Install using buildout.cfg. If you want to use this product in Plone3, you must specify [plone3] extra due to dependency on collective.js.jquery (this package requires jQuery 1.3+).
eggs = ... collective.virtualtreecategories [plone3]
eggs = ... collective.virtualtreecategories
eggs = ... collective.virtualtreecategories [dexterity]
If you want to use this widget in your dexterity content type, you need to specify [dexterity] extra in eggs section of the buildout. You also need to use Keyword field from collective.z3cform.keywordwidget for your schema field and finally set VirtualTreeCategoriesFieldWidget as widget for the field. Please note, this feature requires collective.z3cform.keywordwidget > 1.1.1 or svn branch currently.
from zope import schema from plone.directives import form from collective.z3cform.keywordwidget.field import Keywords from collective.virtualtreecategories.dexterity.widget import VirtualTreeCategoriesFieldWidget class ICustomCategorization(form.Schema): subjects = Keywords( title=u'Categories', value_type=schema.TextLine(), required=False, missing_value=(), index_name='Subject', ) form.widget(subjects=VirtualTreeCategoriesFieldWidget) new_subjects = schema.Tuple( title=u'New categories', description=u'Enter new keywords, one per line.', value_type=schema.TextLine(), required=False, missing_value=(), )
- Added Italian translation [giacomos]
- Added dexterity version of the widget. See Readme. [naro]
- Added French translation [toutpt]
- Fixed serialization problem introduced in 0.3.1 [naro]
- Added option to recursive list of keywords in a category tree. This is also used for list of unassigned keywords. [naro]
- Updated to Plone 4.1 [naro, pcaro]
- added link to search results of selected keywords (like search for items covered by keywords in a category) - controlpanel [naro]
- added list of unassigned keywords (not assigned to any category) including an option to retrieve count of items assigned to this keyword and link to search results for the keyword - controlpanel [naro]
Please note, this release is not tested on Plone 3, but is supposed to work.
- improved i18n [naro]
- Added Czech i18n [naro]
- fixed another data serialization problem [naro]
- fixed data serialization in Plone4, caused by jQuery 1.4 change “Nested param serialization” [naro]
- added new helper methods list_categories and list_keywords. Returns list of categories in particular path (eg. root) or list of keywords assigned to particular category respectively. [naro]
- fixed controlpanel in Plone4. Controlpanel does not use prefs_main_template. [naro]
- Add z3c.autoinclude entry point for automatic ZCML loading in Plone 3.3+. [WouterVH]
- Add MANIFEST.in-file [WouterVH]
- initial Plone 4 compatibility. It works except rendering issues on the controlpanel. [naro]
- fixed problem with more than one Plone site in the zope instance. Thanks Rui Guerra for bug report. [naro]
- Add Dutch translation [WouterVH]
- Add more complete uninstall-profile [WouterVH]
- Changing a schema via schemamodifier changes the default schema of the contenttypes (regardless of any browserlayer), so we need to make changes to a local copy of the schema. [WouterVH]
- fixed helper browser view permissions. Thanks Florent MICHON for the patch. [naro, f10w]
- fixed first-edit-bug in case of edited content is in portal_factory. Thanks Jerome Chambard for pointing to it. [naro]
- controlpanel - added list of currently assigned keywords to the category
- added extender which allows to fiddle AT schema and show VTCWidget instead of KeywordWidget. It is possible to switch widget on/off in the controlpanel.
- updated README, removed evil AT schema patch recommendation
- Fixed missing collective.js.jquery dependency
- Fixed missing locales directory
- Initial release
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|collective.virtualtreecategories-0.3.3.zip (162.8 kB) Copy SHA256 Checksum SHA256||–||Source||Jan 9, 2013|