PHP Classes

xPandMenu: can children have children?

Recommend this page to a friend!

      xPandMenu  >  All threads  >  xPandMenu: can children have children?  >  (Un) Subscribe thread alerts  
Subject:xPandMenu: can children have children?
Summary:How expand this class to allow children to have children
Messages:2
Author:Lewis LaCook
Date:2005-01-25 16:27:54
Update:2005-06-01 03:06:35
 

  1. xPandMenu: can children have children?   Reply   Report abuse  
Picture of Lewis LaCook Lewis LaCook - 2005-01-25 16:27:54
Beautiful, clear, concise code here, GREAT class::::but, not to graze over what may be a social problem (tee hee), how does one create children of child nodes?

bliss
l

  2. Re: xPandMenu: can children have children?   Reply   Report abuse  
Picture of Patrick Brosset Patrick Brosset - 2005-06-01 03:06:35 - In reply to message 1 from Lewis LaCook
Hi,
Sorry for replying sooooo late. Please hear my apologies if you get back here someday.
I actually just discovered this facility on PHPclasses.org, I wasn;t aware of these forums before today.
Anyway, this class, as it is now, cannot have multiple-level children. It's a very simple class that cannot be easily upgraded to allow multiple level.
However, I very recently uploaded on this site another class called multiXPandMenu (very original ;-) ). This class can generate a hierachical and dynamic menu (using DHTML) just like the previous one except that any number of sub-children may be added to whatever node in the tree.

Example:
- level 1
- level 1.1
- level 1.1.1
- level 2
- level 2.1
- level 3

etc ....

Please have a look here http://www.phpclasses.org/browse/package/2333.html
I started with the same idea as the first xpand class but the programming logic was so different that I had to redo a whole new class and not just an update.

Cheers,
Patrick