<https://lh4.googleusercontent.com/-h5f-aniFicg/U7NDgEwEI2I/AAAAAAAACw0/no-feheh6oU/s1600/web2py_login.png> Trying to insert a new option in the register/login menu (the one on the top right of admin).
I searched and read a bunch of threads and concluded that the best way was to do it like this: {{navbar = auth.navbar(mode="dropdown") navbar.append(A('Testing', _href=URL('default'))) }} <ul id="navbar" class="nav pull-right">{{='auth' in globals() and navbar or ''}}</ul> This does not work because it inserts the new option outside of the <ul> and the 'Testing' option shows below the 'Login' one, not inside the dropdown menu. (see image). So I went to read the code and tried to do this: {{auth.navbar.items.append({'name': T('Profile'), 'href': href('profile'), 'icon': 'icon-user'}) }} But I get a ticket saying that auth.navbar does not have an 'items' list... (???) which appear on line 1372 of tools.py. What am I doing wrong? (I am a noob in Python and Web2py). -- 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.