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.

0

Access the Website main.object

By
Martin Ruf
on 4/30/15, 2:43 AM 537 views

Inside the standard templates you can find codelines like...

<meta name="description" t-att-content="main_object and 'website_meta_description' in main_object and main_object.website_meta_description or website_meta_description"/>

Questions are:
Where can i access/change properties like website_meta_description inside the main_objec?

How do i change page information like title after creation?

1
Nedas Zilinskas
On 5/1/15, 8:11 AM

Hello Martin,

The main_object variable holds the view object of currently rendered template.

Variables main_object.website_meta_description and main_object.name (additional title) can be set via "Promote" popup which can be access via the admin toolbar (black bar on top when logged-in via admin user) by clicking on "Promote" link.

The fields will be located under the "2. Reference Your Page" section in "Promote" popup.

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: 4/30/15, 2:43 AM
Seen: 537 times
Last updated: 5/1/15, 8:11 AM