Re: PEAR::Tree to HTML list
| From: | Peter Bowyer | Date: | Wed, 12 Jan 2005 09:47:14 +0000 |
| Subject: | Re: PEAR::Tree to HTML list | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16889@lists.php.net to get a copy of this message | ||
At 08:00 12/01/2005, Alexey Borzov wrote:
HTML_Menu can do that, you can either 1) Borrow the code from there or 2) Convert the tree structure to the input HTML_Menu understands and use itThat is the problem - if I could get the data into the format HTML_Menu needs I could write my own, use that renderer etc. But because Tree uses a callback, passing each node at a time to the renderer, there doesn't seem to ba a way to build this structure. Each node does contain references to next/previous and child nodes (if applicable), but I haven't found these any help in building the necessary structure. Peter -- Maple Design - quality web design and programming http://www.mapledesign.co.uk