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

Hi,

I am looking for a way to export, modify (page title and meta description) then import a selection of my website pages. Any Idea ?

Many thanks !


Tim

อวตาร
ละทิ้ง
ผู้เขียน

Thanks for your anwser.

 

คำตอบที่ดีที่สุด

Hi Tim,

At this point Odoo doesn't really have an easy or good way for this. You could export/import the website pages its content by exporting/importing the XML records but it is far from ideal. Have a look at the URL http://yourdomain.com/website/pages where you can see an overview of custom pages since Odoo 11. If you click on edit here you'll go to the backend where you can see the XML record. You could export or import from here. If you have technical knowledge you can do this through XML-RPC.

The meta description is another thing though. This works a bit different in Odoo and works with a JavaScript widget that loads and sets the value on the page. See https://github.com/odoo/odoo/search?q=js_seo_meta_keywords&unscoped_q=js_seo_meta_keywords for the code. Sadly there is no functionality right now to export these values. The only way to modify those values is by going to the page and clicking on "Promote" > "Optimize SEO":


From this dialog you can set/change the title, description and the meta details:


Regards,
Yenthe

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

Update 2022: 

You can export the title and meta tags of the website. Just go through your normal exporting process and select the necessary fields to export + Website meta description, Website meta keywords, website meta title. 

It will import all the needed meta data to the new page.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 17
3117
2
ก.ค. 24
1539
3
ก.พ. 24
5027
2
ม.ค. 21
6256
Report in custom module แก้ไขแล้ว
2
มี.ค. 20
5227