Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

How to add Facebook Open Graph Tag in the <head> section?

By
Pascal Tremblay
on 9/21/15, 4:52 PM 782 views

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


3

Parikshit

--Parikshit--
939
| 6 3 8
Ahmedabad, India
--Parikshit--

Working as an OpenERP/Odoo developer both experience in web and addons. you can contact me at:

E-mail : parikshitvaghasiya@gmail.com

Blog : parikshitvaghasiya.blogspot.in

Stackoverflow : http://stackoverflow.com/users/5089106/parikshit-vaghasiya

Parikshit
On 9/22/15, 1:14 AM

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 ;-)

Ermin Trevisan
on 9/22/15, 1:17 AM

Thank you :D

Parikshit
on 9/22/15, 1:24 AM

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

Pascal Tremblay
on 9/22/15, 11:09 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/21/15, 4:52 PM
Seen: 782 times
Last updated: 9/22/15, 1:49 PM