Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
3867 Visninger

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
Kassér
Forfatter Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
aug. 20
2978
0
dec. 15
7353
0
jan. 23
1656
0
feb. 21
2638
1
mar. 25
1414