thanks. will do.
On Nov 15, 4:17 am, Iceberg <iceb...@21cn.com> wrote:
> I noticed the MENU() helper uses a "web2py-menu-active" status, but
> there is no corresponding definition in static/base.css
>
> Suggest to add this into the default base.css:
> <style>.web2py-menu-active a {background-color: white;}</style>
>
> So that the active menu item will be shown in white background color.
>
> Want an example of how to benefit from above enhancement? Put
> following code in your controller.py:
>
> response.menu=[[desc,(func==request.function),absurl,submenu] for
> func,desc,absurl,submenu in
> [ # Such as [('func_name1','menu_name1',absolute_url1,[]), ...]
> ('index','Homepage',URL(r=request,f='index'),[]),
> ('foo',T('Foo'),URL(r=request,f='foo'),[]),
> ] if func ]
>
> def index(): return {}
> def foo(): return {}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---