تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
8226 أدوات العرض

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.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
سبتمبر 22
5417
2
سبتمبر 22
12471
1
سبتمبر 15
8123
1
نوفمبر 15
5701
0
يناير 18
4010