Hey Rahul,
You need something like:
response.menu = [
(T('Analysis'), False, URL(), [
(T('Revisions'), False, URL('default,
'index'), []),
(T('Code Introspection'), False,
URL('default, 'introspection'), []),
])
]
For brevity's sake I did a menu only with analysis, you can add the code
section to that.
If you want menu items to become active you can do something like:
(T('Revisions'), request.controller ==
'default' and request.function=='index', URL('default, 'index'), [])
Good luck with your project
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.