Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
8271 มุมมอง

Hello there,

How could I put new code in the <head></head> section of this page? The one selected in blue.

I try to follow ace_editor or ace-tm already there, but I don't find how to add a new line in this <head> section.

I want to put some Facebook Open Graph Markup there.

Could you help please?

Thanks


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello,

you can add using this :

        <template id="login_layout_replace1_new" inherit_id="web.layout" name="Web layout">
<xpath expr="html/head" position="replace">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Odoo</title> 
<link rel="stylesheet" href="/web/static/src/css/full.css" />
<t t-raw="head or ''"/>
//you can add your code here.
</head>
</xpath>
</template>

Hope this will help you!!

อวตาร
ละทิ้ง

Nice avatar, Parikshit ;-)

ผู้เขียน

I try this today. Big thanks. I come back with my result soon.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ย. 22
5450
2
ก.ย. 22
12538
1
ก.ย. 15
8188
1
พ.ย. 15
5782
0
ม.ค. 18
4083