[PHPTAL] Best way to make a list of list
Iván -DrSlump- Montes
drslump at pollinimini.net
Fri Aug 8 18:25:19 CEST 2008
I think the only way to do nested structures with PHPTAL is using
Metal's macros. Have you looked at it?
On Fri, Aug 8, 2008 at 6:18 PM, Guillaume Lecanu <Guillaume at lya.fr> wrote:
> I need to make a menu, with some sub-menus and other sub-menus etc.
> For example :
> * Menu A :
> * A1
> * A2
> * Hello
> * World
> * A3
> * Menu B
> * B1
> * PHPTAL
> * Rocks !
> * B2
> So in XHTML this is list of <ul>:
> <li>Menu A
> <li>Menu B
> But all the structure is stored in DB, so I don't know in advance if one
> menu have 1, 2, or 10 childrens, and I don't know if a children is a
> I know how to do that in PHP without PHPTAL, but how is it possible to do
> that kind of XHTML code with PHPTAL ?
> Thanks a lots for your help.
> PHPTAL mailing list
> PHPTAL at lists.motion-twin.com
More information about the PHPTAL