[web2py] Re: how to test for right_sidebar block not empty in view

2014-06-17 Thread Anthony
Sorry, not sure what you mean. It might help if you show any relevant view and controller code. There is no name for the block of content inside a block -- you simply create the block and put content in it. Anthony On Tuesday, June 17, 2014 3:18:28 PM UTC-4, lucas wrote: > > no, oh no, i didn'

[web2py] Re: how to test for right_sidebar block not empty in view

2014-06-17 Thread lucas
no, oh no, i didn't want how to access the enabled, right_sidebar_enabled, variable. what is the variable named for the block of text or tagged html text itself? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https:

[web2py] Re: how to test for right_sidebar block not empty in view

2014-06-17 Thread Anthony
Are you saying you want logic in the layout that checks whether a given block exists in the included view? I don't think you can do that. But instead, you can set a global "right_sidebar_enabled" variable in the view (that's exactly how that variable is intended to work). In layout.html, there

[web2py] Re: how to test for right_sidebar block not empty in view

2014-06-17 Thread lucas
ok, yes, i agree, but how to test of the right_sidebar is empty or not under layout.html? -- 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 th

[web2py] Re: how to test for right_sidebar block not empty in view

2014-06-17 Thread Anthony
Just put the default text in the block in the layout. If a given view doesn't need to override the default text, just leave the block out of that view entirely. Anthony On Tuesday, June 17, 2014 10:01:27 AM UTC-4, lucas wrote: > > hello one in all, > > in the layout.html file i would like to ch