Hi, I'm using the web2py MENU helper, but whenever i visit a page, the MENU helper does not add a active class to the li..
In the view: {{=MENU(response.menu,_id='navigation')}} In the model: submenu=[] response.menu = [(T('Home'), False, URL('default','index'), submenu)] response.menu.append(['Nieuws', False, URL('aggregator','index')]) pages=db((db.page.parent==0) & (db.page.language==T.accepted_language) & (db.page.isMenuitem==True)).select(orderby=db.page.order_nr) for page in pages: sub_pages=db((db.page.parent==page.id) & (db.page.isMenuitem==True)).select(orderby=db.page.order_nr) submenu=[] for sub_page in sub_pages: submenu.append([sub_page.short_title, False, URL('page','show/%s' % (sub_page.url))]) response.menu.append((page.short_title, False, URL('page','show/%s' % (page.url)), submenu)) The menu works perfectly fine, except for the active class... It does however add the "first" and "last" classes. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.