Sno You can try downloading a HTML/CSS template with good menus -(many there at www.openwebdesign.com) , and make web2py use it. you can learn how to make web2py use it by how layout.html is made.
try to adapt the template with web2py's layout.html and you will get custom menus that you like. On 10/9/08, mdipierro <[EMAIL PROTECTED]> wrote: > > I tried this and it worked for me: > >>>> submenu1=[ > ... ['item1',False,URL(r=request,f='item1')], > ... ['item2',False,URL(r=request,f='item2')], > ... ] >>>> >>>> submenu2=[ > ... ['item3',False,URL(r=request,f='item3')], > ... ['item4',False,URL(r=request,f='item4')], > ... ] >>>> response.menu=[ > ... ['header1',False,'#',submenu1], > ... ['header2',False,'#',submenu2], > ... ] >>>> for head in response.menu: > ... print A(head[0],_href=head[2]) > ... for item in head[3]: > ... print '-',A(item[0],_href=item[2]) > ... > <a href="#">header1</a> > - <a href="/test/default/item1">item1</a> > - <a href="/test/default/item2">item2</a> > <a href="#">header2</a> > - <a href="/test/default/item3">item3</a> > - <a href="/test/default/item4">item4</a> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---