My mistake. Errata: In response.menu=[item1,item2,....]
instead of item1=[label,False,link] use item1=[label,False,A(label,_href=link,_class='...')] On May 3, 1:14 pm, Jason Brower <[email protected]> wrote: > Very odd, but when I put this: > response.menu.append((A(T('register'), _href="bla", _class="test"), > False, None, [])) > > I get this: > > <li><a onclick="javascript:void(0):return false;" href="#"></a><a > href="bla" class="test">register</a></li> > > What up with the javascript? That javascript line is making an extra > bunch of content in my menu and miss aligning it... > like this... > > Any ideas what I am doing wrong here. > BR, > Jason Brower > > On 05/03/2011 06:23 AM, Massimo Di Pierro wrote: > > > > > > > > > In > > > response.menu=[item1,item2,....] > > > instead of > > > item1=[label,False,link] > > > use > > > item1=[A(label,_href=link,_class='...',False,None] > > > On May 2, 9:35 pm, Jason Brower<[email protected]> wrote: > >> I really like the MENU() system but I am finding a limit with classes > >> and id. > >> I would like to set a class or id to each menu item so the theming, > >> javascript, and other items could be applied here. How would I best go > >> around doing this? > >> I suppose I could try to make a patch to MENU to allow this, but I am > >> not very good at backward compatibility. :D > >> --- > >> Best Regards, > >> Jason Brower

