Massimo, When will we have this feature added into menu helper? I really need this...
Thanks. On Jun 17, 12:13 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > Sorry, this needs to be added to the menu helper. Not there yet > > Massimo > > On Jun 17, 10:29 am, blackthorne <francisco....@gmail.com> wrote: > > > since the MENU() helper has been added to web2py, I haven't make it to > > understand how does it indicate if the link is the current link which > > is supposed to do as described in the web2py slides. > > > I made something like: > > response.menu = [ > > [T('Intro'), > > request.function=='index',URL(r=request,f='index')], > > [T('Casas'), > > request.function=='houses',URL(r=request,f='houses')], > > [T('Local'), > > request.function=='place',URL(r=request,f='place')], > > [T('Mapa'), > > request.function=='map',URL(r=request,f='map')], > > [T('Tarifas'), > > request.function=='precos',URL(r=request,f='tarifas')]] > > > , all those functions, actually exist but when I access them nothing > > changes on the generated <li> and <a> items that I can use for CSS. > > I was expecting to see something like an ID or CLASS setting for the > > active link so that I could style it has I want but nothing. I just > > get: > > <ul class="web2py-menu web2py-menu-horizontal"> > > <li><a href="/new/default/index">Intro</a></li> > > <li><a href="/new/default/houses">Casas</a></li> > > <li><a href="/new/default/place">Local</a></li> > > <li><a href="/new/default/map">Mapa</a></li> > > <li><a href="/new/default/tarifas">Tarifas</a></li> > > </ul> > > > Thank you, best regards > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---