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

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 24
1623
1
ธ.ค. 20
7343
I can't edit my website แก้ไขแล้ว
1
มี.ค. 25
16718
1
มิ.ย. 15
3400
Website Export แก้ไขแล้ว
3
ก.พ. 24
10630