Skip to Content
Menu
This question has been flagged
1 Odpoveď
3836 Zobrazenia

In my template i call 

<template id = "get_data" name = "car model">
    <t t-call="website.layout">
      <div class = "container">
        <div>haha</div>
      </div>
    </t>
  </template>

but i want remove
<header id="top>
and <footer id="bottom">

Anyone can help me do this

Avatar
Zrušiť
Autor Best Answer

i add this in XML file but i dont think it is best solution

<xpath expr="." position="inside">
      <script type="text/javascript">
                document.getElementById("top").remove();
                document.getElementById("bottom").remove();
      </script>
    </xpath>
Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
aug 20
2920
0
dec 15
7286
0
jan 23
1607
0
feb 21
2620
1
mar 25
1354