I want 3 columns on most pages with some exceptions.

In layout.html

    left_sidebar_enabled = globals().get('left_sidebar_enabled', True)
    right_sidebar_enabled = globals().get('right_sidebar_enabled', True)
    
 In view on top of every html page:
 
 {{block left_sidebar}} 
        <div id="left_sidebar"}} > 
        <div style="padding: 4px;"> 
   this should appear in left side. It does!
        </div> 
        </div><!-- left_sidebar --> 
{{end}} 
{{block right_sidebar}} 
        <div id="right_sidebar"}} > 
        <div style="padding: 4px;"> 
   this should appear on right column. It doesn't. It is at bottom of left 
column
        </div> 
        </div><!-- right_sidebar --> 
{{end}}
{{extend 'layout.html'}}

For pages that I don't want to use columns I put this at top of view for 
that page:

{{left_sidebar_enabled = globals().get('left_sidebar_enabled', False) }}
{{ right_sidebar_enabled = globals().get('right_sidebar_enabled', False)}}
{{extend 'layout.html'}}

thanks,

Alex Glaros

-- 
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.

Reply via email to