跳至內容
選單
此問題已被標幟
1 回覆
3842 瀏覽次數

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

頭像
捨棄
作者 最佳答案

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>
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
8月 20
2928
0
12月 15
7293
0
1月 23
1612
0
2月 21
2624
1
3月 25
1364