How can I make other snippets work with YAMS?
For Wayfinder, Jot, eForm, Ditto, Breadcrumbs, see the other How To pages.
If the snippet uses templates then it will be necessary to convert the template to display the correct language content.
This should be as simple as replacing the placeholders for the standard document variables:
[+pagetitle+], [+longtitle+], [+description+], [+introtext+], [+menutitle+] and [+content+] by a YAMS snippet call:
[[YAMS? &get=`data` &from=`document_variable_name` &docid=`[+id+]`]]
and including language variants for free text using a
[[YAMS? &get=`text`… snippet call.
See the YAMS snippet documentation for more details.
Suggest an edit to this page.