コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3853 ビュー

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
2963
0
12月 15
7328
0
1月 23
1630
0
2月 21
2625
1
3月 25
1377