I'm sure there'd be a way to do it directly, without reprocessing the list...
This wasn't helpful: http://www.web2py.com/examples/static/epydoc/web2py.gluon.html.MENU-class.html On Mon, Jul 30, 2012 at 10:42 PM, Niphlod <[email protected]> wrote: > if adding the icon to the text of the menu would not work, you can still > serialize in output your own menu. > Normal web2py syntax allows some degree of customization, but if you want > your own you can serialize your structure using the standard templating > language. > > Il giorno lunedì 30 luglio 2012 13:39:38 UTC+2, Alec Taylor ha scritto: > >> Some websites using Twitter-Bootstrap use the in-built icons (or custom >> ones) to decorate their navbar options. >> >> E.g.: http://angularjs.org >> >> How do I add icons to my navbar? >> >> response.menu = [ >> (T('Groups'), False, URL('', 'groups', ' '), []), # want icon-road >> (T('Events'), False, URL('', 'events', ' '), []) # want icon-time] >> >> >> Thanks for all suggestions, >> >> Alec Taylor >> > -- > > > > --

