You don’t. YAMS automatically fetches the correct one for the language being used. Just use the TV name as you normally would, [+HolidayCost+]. You would only use the yams_id prefix for placeholders in the main page outside of the Ditto chunk tpl, such as for the pagination placholders.
Thanks for replying, as always!
I had tried this (and indeed have tried again since your reply) but nothing gets displayed?
If I hardcode in [+HolidayCost_en+] the english version appears fine or likewise with the spanish version [+HolidayCost_es+] but this is useless when switching language in the front end?
Does this make sense to you? Any other ideas?
Maybe try [+HolidayCost_(yams_id)+] ?
If I put in [*HolidayCost_(yams_id)*] into the actual template it works fine...
Why will it not work from within a chunk tpl? Where I need it to work....
Man its so frustrating?
Using [[YAMS? &get=`text` &from=`HolidayCost`]] returns the TV name "HolidayCost_en" or "HolidayCost_es"
or [[YAMS? &get=`data` &from=`HolidayCost`]] returns the value I have set as the default for the TV - £0.00 or €0.00
Sorry to keep bangin’ on but what can I do to get the actual value of the TV?
Are you sure the Ditto extender is working?