İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3467 Görünümler

Hi all,

I want to edit the metadata of a single page.

I can edit the

html tag globally by either editing the "Web Layout" template in the HTML/CSS/JS Web editor (not recommended by Odoo) or by using the graphical website builder, last tab "Theme", last section "inyection code" and clicking the button to edit its code and apply changes globally (recommended way). 


However, I want to customize some specific web pages, how can I edit the

element of each page? I can edit the by selecting the template with the same name in the Web editor, but can't find any related to the . 

Any sugestions?

Thanks!


Avatar
Vazgeç
En İyi Yanıt

open the editor and just use google chrome inspector for editing the page(is a real editing not just local), after save the page.

Avatar
Vazgeç
Üretici

Having learnt more about Qweb templates since I started with Odoo I can say your suggestion might not be a good idea. Although, editing the body with the GUI editor or maybe the chrome inspector as you suggest might reflect the changes in some Odoo Views, other things such as what I asked won't be affected. The Qweb templates renders some HTML files on the fly. Directly editing the Qweb views is more appropiate. Answering my own question, most metadata properties are dynamically generated by the "Main Layout" view, and a few others on "Frontend Layout" and "Web layout" views.

So, how would you add the a specific template/page, let's say homepage, a schema.org into the <head>.
Because editing the QWeb template will insert that added code too deep inside the html for it to be valid.