[phplib] tree_sql, tree_template question From: Jens Benecke (jens <email protected>)
Date: 04/22/01

Hi,

I am experimenting with tree_sql and tree_template ATM and have a few
questions:

- Is it really necessary to give _all_ of the tree to the tree_template
  class in order for it to render the stuff? I have about 30,000 elements
  here and if I request them all out of the SQL database PHP just dies with
  "out of memory".

  What I'd like is for tree_template to request only the elements that are
  needed for display, e.g. all root elements and all parents (and perhaps
  equals) and direct children, of the "currently selected" element (which
  might be determined by a session or GET variable).

  In short, I need some kind of cross between spruce_tree and
  tree_template/tree_sql.

- I didn't find functions or hooks for "expand/collapse tree" in the
  source. Am I blind, or where do I put this in?

- Has anybody perhaps already done this sort of thing with the PHPLIB tree
  stuff?

Thank you ! :)

-- 
Jens Benecke                   "Und deshalb sollte man ja auch immer _alle_
                                 Editoren installieren:  XEmacs _und_ Vim."
				                             -- Sven Guckes
http://www.hitchhikers.de/ - Die kostenlose Mitfahrzentrale für ganz Europa

  • application/pgp-signature attachment: stored