Just pitching in so I understand. Isn't it:
{{block right_sidebar}}
<div class="panel panel-info">
<div class="panel-heading"><h3 class="panel-title"><a class="btn-block"
href="{{=URL('admin','default','index')}}">
<i class="glyphicon glyphicon-cog"></i>
{{=T("admin")}}
</a></h3></div>
<div class="panel-body">
{{=T("Don't know what to do?")}}
</div>
<ul class="list-group">
<li class="list-group-item">{{=A(T("Online examples"),
_href=URL('examples','default','index'))}}</li>
<li class="list-group-item"><a
href="http://web2py.com">web2py.com</a></li>
<li class="list-group-item"><a
href="http://web2py.com/book">{{=T('Documentation')}}</a></li>
</ul>
</div>
{{end}}
That creates the table in welcome app. I believe you need to add {{block
right_sidebar}} in the layout. But right_sidebar_enabled =
globals().get('right_sidebar_enabled', False). But right_sidebar enables
False or True doesn't make any difference.
On Tuesday, January 5, 2016 at 6:03:18 PM UTC-5, Paul McDonald wrote:
>
>
>
> On Tuesday, January 5, 2016 at 5:03:19 PM UTC-5, Paul McDonald wrote:
>>
>> Can anyone post a simple example of a View with a left sidebar?
>> I must be missing something. It looks so simple in the manual "5.7
>> Blocks in views".
>> Thank you in advance. Paul
>>
>
>
>
> Stifan,
> Thank you for your help.
> The problem seems to be that I used the Wizzard to generate a new
> application, and that Layout.html is different from the Welcome Layout.html.
> The Wizzard Layout.html does not handle sidebars properly.
> There seems to be a error in this code:
>
> # using sidebars need to know what sidebar you want to use
> mc0 = 'col-md-12'
> mc1 = 'col-md-9'
> mc2 = 'col-md-6'
> left_sidebar_enabled = globals().get('left_sidebar_enabled', False)
> right_sidebar_enabled = globals().get('right_sidebar_enabled', False)
> middle_column = {0: mc0, 1: mc1, 2: mc2}[
> (left_sidebar_enabled and 1 or 0)+(right_sidebar_enabled and 1 or 0)]
> }}
>
>
--
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.