Menu creation using Web2py?

Asked

Viewed 386 times

0

  • 1

    You can give more details, put what you’ve done?

  • in the models/menu.py file on added line replies.menu +=[ (T('Home'),False,URL('default','index')), (T('About'),False,URL('default','what')) ] , this is what I did.

  • 1

    Edit your question to put this information, try to put something else. try to give a little more context. It’s hard to help without seeing exactly how it’s done.

  • Thanks for the answer, but already manage to resolve, was putting the menus in the wrong place, this putting within the setting of links to each menu.

  • 1

    Put your solution as the answer then. You can even accept it as the correct one. So other people learn and you can gain reputation.

  • Solution: To create menu using the default web2py template just put it on the line rest.menu = [ (T('Home'),False,URL('default','index')), (T('About'),False,URL('default','what')), (T('Download'),False,URL('default','download')) ]

Show 1 more comment

1 answer

2


To create menu using the default template of web2py just put it on the line:

reponse.menu = [(T('Home'), False, URL('default','index')), (T('About'),False,URL('default','what')), (T('Download'),False,URL('default','download'))]

Browser other questions tagged

You are not signed in. Login or sign up in order to post.