This app attempts to provide a generic category system that multiple apps could use. It uses MPTT for the tree storage and provides a custom admin for better visualization (copied and modified from feinCMS).
Find a file
2010-12-18 14:46:37 -05:00
categories Refactored the templates to extend a categories/base.html 2010-12-18 14:46:37 -05:00
doc_src Added the extra templates 2010-05-28 10:31:31 -04:00
docs Redid docs with new template 2010-05-28 10:38:57 -04:00
editor Long trees cause a performance hit if the initial state is expanded. Changing to "collapsed" 2010-12-16 13:27:14 -05:00
example Refactored the templates to extend a categories/base.html 2010-12-18 14:46:37 -05:00
.gitignore Ignoring a few more things 2010-12-16 12:32:46 -05:00
CREDITS.txt Added in support materials 2009-07-07 07:31:34 -04:00
LICENSE.txt Added in support materials 2009-07-07 07:31:34 -04:00
MANIFEST.in Tweaked the setup.py and manifest for a better result 2010-05-28 09:53:31 -04:00
NOTICES.txt Added in support materials 2009-07-07 07:31:34 -04:00
README.rst Renamed the README to indicate it is a reST file. 2010-12-18 14:45:36 -05:00
requirements.txt Updated the requirements to django-mptt 0.4.2 2010-12-10 06:54:55 -05:00
setup.py Renamed the README to indicate it is a reST file. 2010-12-18 14:45:36 -05:00

This app attempts to provide a generic category system that multiple apps could use. It uses MPTT for the tree storage and provides a custom admin for better visualization (copied and modified from feinCMS).

Goals of the project

* Have a generic method for handling hierarchical data

* Allow multiple independent trees, or just one tree

* Have a widget for use in forms

* In templates:

	+ Show one level of a tree 
		- All root categories
		- Just children of a specified category

	+ Show multiple levels
		- Ancestors of category, category and all children of category
		- Category and its children

	+ An inclusion tag for common methods of formatting categories
		- Grandparent :: Parent :: Child <-- current node
			- Add relative links for ancestors
		- Unordered list:
			* Grandparent
			    * Parent <-- current node
			        * Child 1
			        * Child 2
			        * Child n