if not auth.user:
    auth.navbar()[3]['_href'] = URL('register')

auth.navbar() simply returns a SPAN object containing the navbar elements, 
so it can be manipulated via the server-side 
DOM<http://web2py.com/books/default/chapter/29/05#Server-side-DOM-and-parsing>
.

Anthony

On Thursday, December 27, 2012 9:32:30 AM UTC-5, Lamps902 wrote:
>
> Hi, group. Is there a straightforward way to modify web2py's navbar? I 
> would like to customize the default navbar so that it redirects to a custom 
> 'register' function when that option is selected, keeping all other 
> functionality as it is. Thanks!
>

-- 



Reply via email to