request.function=='user/register' should be
request.function=='user' and request.args(0)=='register' On Nov 18, 2:00 am, annet <[email protected]> wrote: > I menu.py I defined the following menu: > > if 'auth' in globals(): > if not auth.is_logged_in(): > response.menu_auth = [ > ['Fitwise CMS',request.function=='index',URL > (r=request,c='default',f='index')], > ['Login',request.function=='user/login',URL > (r=request,c='default',f='user/login')], > ['Register',request.function=='user/register',URL > (r=request,c='default',f='user/register')], > ['Username opvragen',request.function=='user/ > retrieve_username',URL(r=request,c='default',f='user/ > retrieve_username')], > ['Password opvragen',request.function=='user/ > retrieve_password',URL(r=request,c='default',f='user/ > retrieve_password')]] > else: > response.menu_auth = [ > ['Fitwise CMS',request.function=='index',URL > (r=request,c='default',f='index')], > ['Logout',request.function=='user/logout',URL > (r=request,c='default',f='user/logout')], > ['Profiel wijzigen',request.function=='user/profile',URL > (r=request,c='default',f='user/profile')], > ['Password wijzigen',request.function=='user/ > change_password',URL(r=request,c='default',f='user/change_password')]] > > When I visit Fitwise CMS the link is class is set to active: > > <a class="active" href="/cms/default/index"><Fitwise CMS</a> > > However, when I visit one of the other functions (login, register > etc.) it is not: > > <a href='/cms/authentication/user/login">Login</a> > > Is there a way to solve this? > > Kind regards, > > Annet. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

