Re: nested tree
| From: | Tommy Ipsen | Date: | Tue, 04 Nov 2003 18:40:33 +0000 |
| Subject: | Re: nested tree | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168497@lists.php.net to get a copy of this message | ||
Daniel Demacek wrote:
Now I have written the following code to represent this nested tree using <ul> and </ul> in html, which I think is very ugly and probably not very efficient, I was wondering if there was a better solution, maybe more efficient:You might consider using the PEAR::Tree class (perhaps together with PEAR::HTML::Tree_Menu) for this project - it might help you out - I'm trying to accomplish the same thing - to create a menusystem which allows infinitely nesting and outputs a html-list menu using CSS to style the menu (See: http://www.alistapart.com/articles/slidingdoors/ and http://www.alistapart.com/articles/slidingdoors2/) Cheers, Tommy Ipsen PS: I would like to hear how you solve the problem since (as mentioned) I'm working on the same thing!