Thanks to some very valuable input from this forum I am making good progress on theming.
Now I would like to show a block of HTML on the home page only which looks like:
<template id="x_mytheme.home" name="My Home" page="True">
<t t-call="x_mytheme.layout">
<div id="maincol">
...[html]...
</div>
</template>
For testing purposes I'm using a copy of website.layout which I'm editing:
<template id="x_mytheme.layout" name="My Layout"><!DOCTYPE html>
...[html]...
<div id="content-top" class="row">
....[html]...
</div>
</template>
The HTML block needs to show below #content-top; I know this works when I inherit my layout:
<xpath expr="//div[@id='content-top']" position="after">
...
</xpath>
This affects every page that calls my layout though. How can I do this when this layout is called inside another view with t-call?
Btw, any idea how I can add this code below to source? Am I right in presuming it is stripped from the source before building the HTML?
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
Is there any info on how Odoo handles this kind of conditional statements?
Cheers
- Bruno