-
- 805 Posts
-
- 805 Posts
The problem was that you had specified [tt][[YAMS? &get=`tv` &from=`newsletter`]][/tt] within the [tt]newsletter_langid[/tt] template variable. The role of [tt][[YAMS? &get=`tv` &from=`newsletter`]][/tt] is to get the multilingual template variable... so this was resulting in an infinite loop. I moved the [tt][[YAMS? &get=`tv` &from=`newsletter`]][/tt] call to your document template and now it all works fine.
Also created a hidden document that pulls in some content from another document using [tt]((yams_data:docid:content_langid))[/tt].
-
- 805 Posts
The special yams placeholder [tt](yams_id)[/tt] gets the language id of the current language. I think nesting of the placeholders should work, so you could do: [tt]((yams_data:docid:content_(yams_id)))[/tt]. A better way is probably to do this instead however: [tt][[YAMS? &get=`data` &from=`content` &docid=`docid`]][/tt]
Please note however that you your case you have used [*content_en*] in your non-English template variables (French for example) in order to copy over the English content to the other languages until they are translated. The problem with this is that when you use [tt]((yams_data:docid:content_fr))[/tt] it will get replaced by [*content_en*] - which will output the English content of the current document - not of the document given by docid as you might expect.