[Zope-CMF] User created Tree/Outline/collapsable documents?
Colin Leath
cleath@j9k.com
Wed, 4 Sep 2002 13:36:48 -0400 (EDT)
Do you have suggestions on creating a CMF document which allows users to display trees?
For example: MS Word Outline format.
+header
contents1
contents2
contents3
+header
contents1
contents2
+header
and so on.
My current plan is the following:
Users can create a normal CMFDocument using structured text.
Whenever they want to create a heading that can be collapsed/expanded, they can put
<c>My collapsible header</c>
tags around that header.
I will create a python script, which when called, will take the editable body from the CMFDocument, create a parsed XML object from that document and return a page rendering the ParsedXML object as a tree with expandable/collapsable headers.
This sounds sort of kludgy, is there an easier way?
Has anyone else found a nice way of letting users create collapsable documents?
This would also allow a script-created table of contents (It would be nice if users had an easy way of adding a TOC to stx documents).
Thanks for any suggestions!
Colin