Re: [web2py] layout with submenu
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.comwrote: 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
Re: [web2py] layout with submenu
thank you Richard but the problem is the css code that in most or quite all layouts does not defines proper classes to manage sub menu so if you use it you will obtain ugly effects... I'm not so skilled with css and I was looking for some layout that contains classes for submenu Sorry if my quest was not so clear cheers Manuele On 06/06/2011 16:51, Richard Vézina wrote: 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 mailto: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
Re: [web2py] layout with submenu
Do you have a example (screenshot) of the glitch... I don't see any problem in the welcome app? Richard On Mon, Jun 6, 2011 at 4:15 PM, Manuele Pesenti manuele.pese...@gmail.comwrote: thank you Richard but the problem is the css code that in most or quite all layouts does not defines proper classes to manage sub menu so if you use it you will obtain ugly effects... I'm not so skilled with css and I was looking for some layout that contains classes for submenu Sorry if my quest was not so clear cheers Manuele On 06/06/2011 16:51, Richard Vézina wrote: 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 mailto: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