try this:

{{='auth' in globals() and auth.navbar(mode="dropdown") or ''}}

you can also remove the mode="dropdown" parameter.

-rif

duminică, 17 februarie 2013, 07:24:11 UTC+2, 黄祥 a scris:
>
> hi,
>
> i've create the custom layout using 
> http://www.cssportal.com/layout-generator/ and also the menu 
> http://www.cssportal.com/css3-menu-generator/ and tried to use it on 
> web2py application.
>
> views/custom_layout.html
> <html>
> <head>
> {{  
> response.files.append(URL('static','css/custom_layout.css'))
> response.files.append(URL('static','css/custom_menu.css'))
> response.files.append(URL('static','css/custom_footer.css'))
> }}
>
> {{include 'web2py_ajax.html'}}
> </head>
> <body>
>         <div id="navigationwrap">
>             <div id="navigation">
>                 {{=MENU(response.menu, _id='menu-bar')}}
> *                {{='auth' in globals()}}*
>             </div>
>         </div>
> </body>
> </html>
>
> the login link is not show up in my custom layout, like in default 
> layout.html the login is on upper right in drop down style, is there anyone 
> know how to show it?
>
> many thanks before.
>

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to