- 
   Header: 
http://code.google.com/p/web2py/source/browse/applications/welcome/views/layout.html#90
   - Status 
   Bar: 
http://code.google.com/p/web2py/source/browse/applications/welcome/views/layout.html#100
   - Main Body (including two optional 
   sidebars): 
http://code.google.com/p/web2py/source/browse/applications/welcome/views/layout.html#117
   - Content (within main 
   body): 
http://code.google.com/p/web2py/source/browse/applications/welcome/views/layout.html#128
   - 
   Footer: 
http://code.google.com/p/web2py/source/browse/applications/welcome/views/layout.html#146
   

The {{include}} appears in the "content" section at line 129 -- that's were 
your particular view gets inserted into the main layout.

Note, although web2py provides some help with layout via the scaffolding 
('welcome') app, layout is really a client-side HTML/CSS issue. web2py 
doesn't define/design your layout for you -- you design your layout, and 
web2py can dynamically generate it and the content that goes into it. If you 
need a three column layout, you have to figure out how to do that using 
HTML/CSS. If you need help with that, you might consider one of the many CSS 
layout frameworks available (e.g., www.getskeleton.com).

If you want to make your pages modular, you could use template blocks 
(http://web2py.com/book/default/chapter/05#Blocks-in-Views) and/or 
components (http://web2py.com/book/default/chapter/13#Components). However, 
you'll still have to design a layout to contain your blocks and components.

Anthony


On Thursday, October 6, 2011 3:32:26 PM UTC-4, miroslavgojic wrote:
>
> I didn't find any simple example, I look at my layout.html but it is to 
> much complicated for my needs, or I must my template from beginning to end 
> that I can understood.
>
> I look in the book but nothing helpful for beginners, and where is that 
> thing commented, here on the group. 
>
>
> - - Miroslav Gojic - -
>
>
>
> On Thu, Oct 6, 2011 at 21:23, pbreit <[email protected]> wrote:
>
>> The default layout.html is configured with a Header, Body and Footer. It's 
>> well-commented so that's a good place to start.
>
>
>

Reply via email to