0
I’m having difficulty creating menu on my site using the standard Web2py template, some hint and example?
I tried to follow suit https://stackoverflow.com/questions/10071468/adding-a-view-as-menu-item-using-menu-py-in-web2py
It just doesn’t show up on the home page.
You can give more details, put what you’ve done?
– Maniero
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.
– Agnaldo Marinho
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.
– Maniero
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.
– Agnaldo Marinho
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.
– Maniero
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')) ]
– Agnaldo Marinho