[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?
Iván
On Fri, Aug 8, 2008 at 6:18 PM, Guillaume Lecanu <Guillaume at lya.fr> wrote:
> Hello,
>
> 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>:
>
> <ul>
> <li>Menu A
> <ul>
> <li>A1</li>
> <li>A2
> <ul>
> <li>Hello</li>
> <li>World</li>
> </ul>
> </li>
> <li>A3</li>
> </ul>
> </li>
> <li>Menu B
> ....
> </li>
>
>
> 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
> submenu.
>
> 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
> http://lists.motion-twin.com/mailman/listinfo/phptal
>
>
More information about the PHPTAL
mailing list