Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
3839 Prikazi

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
Opusti
Avtor 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
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
avg. 20
2928
0
dec. 15
7291
0
jan. 23
1612
0
feb. 21
2624
1
mar. 25
1364