[ic] Re: Subcategories

Jonathan Clark interchange-users@interchange.redhat.com
Tue Mar 5 10:48:01 2002


> I found an article by Mike Heins about his Tree Example in which
> deeper subcategories are created and displayed on the tree page.
>
> Here is a link to the full code for those who would like it:
>
> http://developer.akopia.com/archive/interchange-users/2001/msg09061.html
>
> I have a few questions:
>
> 1. In the Prerequisites section, Mike mentions that you can
> populate the new field with the following code. Where does the code go?

put it into a basically blank page and call it from a web browser.

> 2. Can the tree code be used to create deeper subcats that could
> be displayed at the tops of the respective subcatgory pages, as
> well as on the tree page?

yes.

[snip]

> This encourages me that deeper subcats are possible. Has anyone
> created a system that can handle deeper subcats?

That's what the [tree] tag is for. I have a tree which can go as deep as you
like. Each record has field which defines its position in the tree. I use
this for a (sort of) file manager. The tree can go as deep as you like and
each level can have more folders (branches) or files (leaves). I have one
'tree' page which is called with a parameter which indicates where in the
tree to start; this could be the root, or anywhere else further down.

Jonathan
Webmaint.