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@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to