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

I had created a snippets with static data and while drag and drop in website it displays the content, where as how to display dynamic field value in that snippets. By the way after displaying and editing how the values are reflecting in database ??

Thanks in Advance

頭像
捨棄
最佳答案

how can access other object with snippet

頭像
捨棄
最佳答案

Hello,


In Snippet you can access any field of website object by <t t-esc="website.social_facebook">.

頭像
捨棄
作者

Thanks, if i try to change the social_facebook value in website frontend, how to reflect that in backend.

Display using means it get value from backend and changing it while in edit mode will automatically reflect that in backend.

作者

I had changed the content value in front value but it is not changing the value in backend

作者

By the way if i want to display value of some some other object value what should i need to do?

Are you using Share snippet defaultly provided?It doesnt using .

For using other object data, you need to make related widget and controller.You can see live example in website_event module .Go through '/event/get_country_event_list' route in website event.

相關帖文 回覆 瀏覽次數 活動
0
3月 24
1679
1
12月 20
7426
1
3月 25
16815
1
6月 15
3472
3
2月 24
10798