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 change the {{block right_sidebar}}
> section a bit. basically, if right_sidebar_enabled is True, but the block
> is empty in the view, then default to some text, but if the block is not
> empty then display that text. i was thinking something like
>
> if response.right_sidebar:
>
> was correct, but it excepts out. thanx in advance, lucas
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.