Re: HTML Menu: nested trees
| From: | Uwe Mindrup | Date: | Fri, 19 Sep 2003 20:27:35 +0000 |
| Subject: | Re: HTML Menu: nested trees | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-7931@lists.php.net to get a copy of this message | ||
Alexey Borzov wrote:
> Uwe Mindrup wrote:
>
>> Hi,
>>
>> is it possible to generate nested menu trees like this:
[nested <ul>-sample here]
>> 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. :]
very fine to hear/read that!
>> 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?
Yes, a good idea! This solution would change only the internal _renderTree()
and does not break the HTML_Menu interface (like my trial).
--
Uwe Mindrup, Ludwigsburg (Germany)