I'm using a structure similar to `response.menu` to generate my
sidebar, in that way you can have general items inserted in your
sidebar and customize it later.
2016-03-27 19:11 GMT-04:00, 黄祥 :
> pls try in your view :
> {{right_sidebar_enabled = True}}
>
> {{block right_sidebar}}
> {{include 'def
pls try in your view :
{{right_sidebar_enabled = True}}
{{block right_sidebar}}
{{include 'default/right_sidebar.html'}}
{{end}}
{{extend 'layout.html'}}
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source co
changed in trunk.
On Oct 5, 4:58 am, Jonas Rundberg wrote:
> Hi
>
> Using left or right sidebars in layout.html doesn't render the page as
> intended. (Using both sidebars seems ok).
>
> layout.html sets the width of #content to 740px, but it should be
> 720px to handle the padding in #page.
>
>
Thanks a lot.
My issue is resolved with the help of your tips.
Web2py's active community is one of its major plus points.
Thanks again.
:)
--Vineet
On Sep 23, 1:01 am, pbreit wrote:
> Maybe you want to increase the width of "wrapper"?
>
> #wrapper {width: 900px;}
>
> If you use Chrome or Safari
Maybe you want to increase the width of "wrapper"?
#wrapper {width: 900px;}
If you use Chrome or Safari (or Firebug on Firefox), right-click to "Inspect
element". Then click on in the code listing. Over on the
right, double-click on "900px" which will let you edit it and see the result
immedi
On Sep 22, 1:29 pm, Anthony wrote:
> Got it. Note, because of the width_content variable, it appears you don't
> actually have to edit #content in base.css -- setting the #content width is
> handled by width_content in layout.html.
To change the sidebar widths (the original question) you still
Got it. Note, because of the width_content variable, it appears you don't
actually have to edit #content in base.css -- setting the #content width is
handled by width_content in layout.html.
Anthony
On Thursday, September 22, 2011 12:37:11 PM UTC-4, DenesL wrote:
>
>
> Forgive my bad wording, I
Forgive my bad wording, I meant to say it is not a variable that you
would set somewhere (like left_sidebar_enabled) and expect it to have
an effect, i.e. in the layout code there is no:
globals().get('width_content', ...)
On Sep 22, 10:18 am, Anthony wrote:
> On Thursday, September 22, 2011 1
On Thursday, September 22, 2011 10:01:29 AM UTC-4, DenesL wrote:
>
>
> Note that width_content is not a real variable, it is just a comment
> on what is going to happen when you change the sidebar settings and a
> reminder to modify the base.css, in particular the #content under
> #left_sidebar.
In base.css, just change values for left_sidebar to what you need,
e.g. width:10%
and adjust #content values accordingly.
About left_sidebar_enabled you can set it to True in the layout or
just pass it back from your controller in the dict:
return dict(..., left_sidebar_enabled = True)
Note t
Hm...
I think I am referring to a different thing than what I meant to.
I wish to decrease the width of white columns on the left & right
sides.
Is this called a sidebar or something else?
I fiddled in many ways to adjust it, as mentioned in the OP, but
couldn't fix it.
Secondly, how to put
I don't know what the implications are but you can adjust the left-sidebar
width in base.css:
#left_sidebar { width: 160px; float:left; display: none; }
I have also modified code in layout.html
left_sidebar_enabled = False
alternatively,
if left_sidebar_enabled and right_sidebar_enabled: width_content='10%'
(not sure if this is the correct way)
But it did not help.
Any tip on this issue?
---Vineet
On Sep 20, 7:51 pm, Vineet wrote:
> I wish t
13 matches
Mail list logo