Hi Chris,

Thanks for your reply.

Can you check if there are any errors given by your browser about the files 
> not being found?
>

Firebug does not report any errors.

 

> Maybe take a look at the html that is generated and see what is there.
>


Paths should be relative to the /views folder; can you confirm that all of 
> the paths are correct?
>

All paths are correct.


The only clue I have got has got to do with include depth. The include is 
in a view which is 
included in default/layout.html which extends scaffolding/inner_layout.html 
which extends
scaffolding/outer_layout.html. When I move the view into 
default/layout.html every thing
works fine.


Regards,

Annet


 

 

>
> On Thursday, May 15, 2014 8:37:23 AM UTC-4, Annet wrote:
>>
>> That's the problem the alert and form are rendered the content of 
>> {{inlcude}} is not.
>>  
>> In a view called layout.html in a folder 'admin' I have the following 
>> code:
>>
>> {{extend 'scaffolding/inner_layout.html'}}
>>
>> <section class="main-content bottom40">
>>   <div class="container">
>>
>>     {{include 'buildingblocks/my_header.html'}}
>>
>>     <div class="row page-header">
>>       <div class="col-sm-2 col-sm-offset-1">
>>         <a href="{{=URL(ADMINNAV)}}"><img src="{{=URL('dbmodel', 
>> 'static', 'img/sysicons/adm-index.svg')}}" class="img-responsive" alt="" 
>> width="64px" height="64px" /></a>
>>       </div> <!-- /.col-sm-2 -->
>>       <div class="col-sm-9">
>>         <h3>Admin overzicht</h3>
>>       </div> <!-- /.col-sm-9 -->
>>     </div> <!-- /.row -->
>>
>>     {{include 'buildingblocks/page_header.html'}}
>>
>>     <div class="row">
>>       <div class="col-sm-9 col-sm-offset-2">
>>         {{include 'buildingblocks/alert.html'}}
>>         {{if form:}}
>>           {{=form}}
>>         {{pass}}
>>         {{include}}
>>       </div> <!-- /.col-sm-9 col-sm-offset-2 -->
>>       <div class="col-sm-1">
>>       </div> <!-- /.col-sm-1 -->
>>     </div> <!-- /.row -->
>>
>>   </div> <!-- /.container -->
>> </section> <!-- /.main-content -->
>>
>>
>> When I put the following section in a view called: my_block.html in 
>> folder 'buildingblocks'
>>
>> <div class="row">
>>     <div class="col-sm-9 col-sm-offset-2">
>>       {{include 'buildingblocks/alert.html'}}
>>       {{if form:}}
>>         {{=form}}
>>       {{pass}}
>>       {{include}}
>>     </div> <!-- /.col-sm-9 col-sm-offset-2 -->
>>     <div class="col-sm-1">
>>     </div> <!-- /.col-sm-1 -->
>>  </div> <!-- /.row -->
>>
>> and replace the code with {{include 'buildingblocks/my_block.html'}}
>> The alert and the form are rendered, but the content of {{include}}
>> isn't rendered at all.
>>
>> For instance the following function:
>>
>> def index():
>>     response.view = 'admin/index.html'
>>     return dict(form=None)
>>
>> and view admin.html:
>>
>> {{extend 'admin/layout.html'}}
>>
>> <h2>Test view</h2>
>>
>> Does render anything. I have no idea why not. I hope one of you does.
>>
>>
>> Regards,
>>
>> Annet
>>
>>
>>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to