[phplib] PHPLIB Tree class question From: Jens Benecke (jens <email protected>)
Date: 01/28/01

Hi,

After days of trying to get Spruce_Tree working and not getting anywhere (I
assume I'm just too stupid - I'd still appreciate help there) I wonder if
anyone has an idea whether / how the following can be achieved with the
Tree class in PHPLIB.

1) All sublevels should start collapsed.

The result that is to be shown in tree form can easily grow to about 20,000
elements and I don't want them all expanded. Creating that big an HTML file
is just plain stupid and then I could just as easily have listed them
one-dimensionally.

2) Only one sublevel should be open at a time.

Same as above. I think Windows help file indexes behave simliarly (but I
don't know because I don't use Windows). E.g. when the user clicks to
expand one sublevel all branches that are not parents of that one should
collapse.

Perhaps there is a better way of doing this? Actually, I looked at Zopes
tree classes and they seem to do most of this, but I don't know enough
Python/DTML to be able to port the rest of the stuff.

Any ideas would be really appreciated.

-- 
A: "Ist [...] noch am Leben?"
B: "Sie wurde zusammen mit ihrem Mann begraben."
A: "Das beantwortet meine Frage nicht!"
http://www.hitchhikers.de/ - Die kostenlose Mitfahrzentrale für ganz Europa

  • application/pgp-signature attachment: stored