In my application the header and footer are rendered once, the content
loads using web2py_component.
web2py_component is triggered by an onclick event in the menu items:
<li {{if _active:}} class="active" {{pass}}>
<a onclick="web2py_component('{{=_link}}',
'content')">{{=_name.replace('_', ' ').capitalize()}}</a>
</li>
I wonder whether web2py_component can target more than one component on a
page.
I'd like to load an image into the header using web2py_component as well.
The part of the header that contains the image reads like"
<div class="col-md-8">
<img src="{{=URL('dbModel', 'static', 'img/nds/node8/easyline.jpg')}}"
class="img-responsive" alt="" width="780px" height="240px" />
</div> <!-- /.col-md-8 -->
the URL should become dynamic based on request.function
Kind 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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.