Skip to main content

collective.categorizing aims to add hierarchical categorizing to Plone with Category content type.

Project description

Introduction

Contents in Plone can be categorized by subjects (keywords) with collection machinery. However, it does not support hierarchical categorizing and backward categorizing. It is also not aware of languages.

collective.categorizing aims to provide easy to categorize with all those functions supported.

This package is only tested with Plone-3.2.3

Changelog

0.1.0 - Unreleased

  • Initial release

Installation

To install collective.categorizing into the global Python environment (or a workingenv), using a traditional Zope 2 instance, you can do this:

  • When you’re reading this you have probably already run easy_install collective.categorizing. Find out how to install setuptools (and EasyInstall) here: http://peak.telecommunity.com/DevCenter/EasyInstall

  • If you are using Zope 2.9 (not 2.10), get pythonproducts and install it via:

    python setup.py install --home /path/to/instance

into your Zope instance.

  • Create a file called collective.categorizing-configure.zcml in the /path/to/instance/etc/package-includes directory. The file should only contain this:

    <include package="collective.categorizing" />

Alternatively, if you are using zc.buildout and the plone.recipe.zope2instance recipe to manage your project, you can do this:

  • Add collective.categorizing to the list of eggs to install, e.g.:

    [buildout]
    eggs =
    collective.categorizing
  • Tell the plone.recipe.zope2instance recipe to install a ZCML slug:

    [instance]
    recipe = plone.recipe.zope2instance
    zcml =
    collective.categorizing
  • Re-run buildout, e.g. with:

    $ ./bin/buildout

You can skip the ZCML slug if you are going to explicitly include the package from another package’s configure.zcml file.

HOWTO

This part of document describes how to categorize contents in a plone site.

  1. Once you have installed this package, you can add CategoryContainer content type. Add it any ware within a folderish content type. You need to select content types to be categorized when you add the CategoryContainer. All the plone default conten type should be shown there. Those content types you have selected and which resides in the same parent folderish content type (Parent Folder) as CategoryContainer will be categorized.

    Example

    To categorize all the Document content type of the plone site, add the CategoryContainer exactly under the plone root.

  2. Add Category (Let’s call this, Category A) content type to CategoryContainer. You may also add another Category (Category B) to already added Category A. Category B is now subcategory of Category A. If you have another Cateogry (Category C), which is not hierarchically subcategory of Category A, but still want to make it as a subcategory of Category A, you may refer it from edit page of Category A at the field of subcategory.

  3. If you already have content types to be categorized, they are already categorized. If you don’t have one, add one to a Parent Folder or any subfolders of the Parent Folder.

  4. The categorized contents now have a new tab called whatever you have input to CategoryContainer’s Title. There you see to which category the content belongs and can be updated through the page.

TODO

  • Event subsriber when moving categories should be done more clean way. Right now, category which causes hierarchy looping would be deleted when looping happens.

  • Hierarchy level (depth) is not used yet.

  • Category portlet need to be created.

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.categorizing-0.1.0.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

collective.categorizing-0.1.0-py2.4.egg (61.4 kB view details)

Uploaded Source

File details

Details for the file collective.categorizing-0.1.0.tar.gz.

File metadata

File hashes

Hashes for collective.categorizing-0.1.0.tar.gz
Algorithm Hash digest
SHA256 edbee36c6e2e95d69feffd2da41a7208df5417163cdd224f372efcfb28e0158e
MD5 dd8420a81cbb5a3b8399381c00deadd7
BLAKE2b-256 d1d63a7bb6c6d2c5350db52f01cdee86756d5f4c6d90b03135c75088cb8575a0

See more details on using hashes here.

File details

Details for the file collective.categorizing-0.1.0-py2.4.egg.

File metadata

File hashes

Hashes for collective.categorizing-0.1.0-py2.4.egg
Algorithm Hash digest
SHA256 10bfd9d109707bd7653a571c1b2641254341fcb5a00aa53441fe4ead99783c7f
MD5 78411d20a8872aafe578db6efa0261c1
BLAKE2b-256 070498d57324f03a2f92ca2a97f585ceb6ab546e85e0828e0434e7df8c3c88d5

See more details on using hashes here.

Supported by

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