Re: HTML Menu: nested trees

From: Date: Fri, 19 Sep 2003 11:47:31 +0000
Subject: Re: HTML Menu: nested trees
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7918@lists.php.net to get a copy of this message
Uwe Mindrup wrote:
Hi, is it possible to generate nested menu trees like this: <ul> <li>Startpage</li> <li>Entry 2 <ul>
    <li>Entry 2.1</li>
    <li>Entry 2.2</li>
</ul> <li>Entry 3</li> </ul> with the existing HTML Menu package?
No, I'm afraid it is not currently possible. But right now I am gathering ideas for the package's next version, and yours seems like a good one. :]
Or is there a more elegant method to generate the above structure of a menu with the HTML Menu package?
I thought about this a bit and feel that adding a method like finishLevel() to the Renderer class, that would be specific to the tree-type menu and called from _renderTree() is the way to go. What do you think?

« previous php.pear.general (#7918) next »