Skip to Content
Menu
This question has been flagged
1 Reply
3770 Views

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
Discard
Author 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
Discard
Related Posts Replies Views Activity
0
Aug 20
2845
0
Dec 15
7227
0
Jan 23
1520
0
Feb 21
2520
1
Mar 25
1173