I am not sure to understand what you need, but you can nest you stuff like
this :

    response.menu = [
         [T('root1').capitalize(),
             False,
             '',
             [
             [T('level1-1').capitalize(),
                 False,
                 URL(request.application,
                 'controller',
                 'function'),
                 [
                     [T('level2-1').capitalize(),
                     False,
                     URL(request.application,
                     'controller',
                     'function'),
                     []],
                 ]],
             [T('level1-2').capitalize(),
                 False,
                 URL(request.application,
                 'controller',
                 'function'),
                 []],
             [T('level1-3').capitalize(),
                 False,
                 URL(request.application,
                 'controller',
                 'function'),
                 []],

         ]],


         [T('root2').capitalize(),
             False,
             '',
             [
                 [T('level1-1').capitalize(),
                     False,
                     URL(request.application,
                     'controller',
                     'function'),
                     []],
                 [T('level1-2').capitalize(),
                     False,
                     URL(request.application,
                     'controller',
                     'function'),
                     []],
         ]],
        ]

Take care of proper indentation and open and closing your bracket correctly.

Richard

On Mon, Jun 6, 2011 at 7:13 AM, Manuele Pesenti
<manuele.pese...@gmail.com>wrote:

> Hi *,
> I realize that most of the layouts available for download do not support
> the submenu, in the sense that it's not managed so if defined it couses
> unwanted behavior... does anybody knows layouts that implements submenu
> managment?
>
> thanks
>
>        Manuele
>

Reply via email to