response.menu =
[['name',request.function=='item',URL(r=request,f='item')]]
the second boolean is the active status
{{=MENU(response.menu)}}
renders active <li> with a class "li_active" you can use the css to
highlight it.
On Apr 28, 2:50 pm, DJ <[email protected]> wrote:
> Hi all,
>
> There has been some discussion on this previously and I believe
> Massimo has included a menu-selected option in MENU.
>
> What's the best way to display a menu with the current item selected?
>
> Default code example:
>
> {{if response.menu:}}
> {{=MENU(response.menu, _class = 'web2py-menu web2py-menu-
> horizontal')}}
> {{pass}}
>
> Thanks for your help!
>
> -Sebastian