콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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
1635
1
12월 20
7357
1
3월 25
16734
1
6월 15
3415
Website Export 해결 완료
3
2월 24
10654