Hi All,
I've been stuck up at a point with web2py menus - Below is a
part of code in my menu.py file. Now If I have the page structure like
below and I *first *navigate to say page - Code Index [ codeindex()]. and
from here I have dynamically added a list of a few code articles which
generates a dynamic page called Articles.html where the url becomes
"default/structures/articles" . From this dynamically generated
page/location if I navigate back to say menu 'Code Introspection', it does
not take me there because the path becomes something like "
default/structures/introspection/" where it should actually be
"default/introspection" . How do I dynamically achieve this using menus ?
What needs to be changed? I know from webpage links we can do this -
"{{=URL('appname','default', 'introspection')}}" can we do a similar thing
here? Please suggest.
Code: ---
*menu.py*
response.menu = [
(T('Analysis'), False, URL(), [
['Revisions', False, 'index'],
['Code Introspection', False,
'introspection']
]),
(T('Code'), False, URL(), [
['Code Index', False, 'codeindex'],
['My Structures', False, 'structures']
]),
*Sincerely, Rahul D.*
--
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.