跳至內容
選單
此問題已被標幟
1 回覆
3675 瀏覽次數

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?

頭像
捨棄
最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
7月 25
788
2
6月 25
2372
3
4月 25
2586
1
4月 25
2057
1
12月 24
2372