Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
8 Vastaukset
8708 Näkymät

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

Avatar
Hylkää
Paras vastaus

how can access other object with snippet

Avatar
Hylkää
Paras vastaus

Hello,


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

Avatar
Hylkää
Tekijä

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.

Tekijä

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

Tekijä

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.

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
maalisk. 24
1624
1
jouluk. 20
7343
1
maalisk. 25
16720
1
kesäk. 15
3402
3
helmik. 24
10630