Here is some advice for those of you who are starting to use YAMS and who also wish to use PHx. Using both together should work in theory, and it does appear that this is possible, but I can’t guarantee that there wont occasionally be conflict between the two plugins.
1. Go to Resources/Elements>Plugins>Edit Plugin Execution Order by Event and for each event in which YAMS appears, reorder the list to put YAMS in first place. Failure to do so can result in weird caching problems. For example, a page might look normal the first time your view it but might look different or might be blank the second time.
2. You can mitigate potential conflict by trying to avoid mixing YAMS and PHx, and specifically by avoiding using PHx to achieve tasks that YAMS has been designed for. Here are some examples:
2.a Instead of
[+phx:if=`(yams_id)`:is=`en`:then=`Content`:else=`Содержание`+]
use
[[YAMS? &get=`text` &from=`en::Content||ru::Содержание]]
2.b
Instead of
[+phx:if=`(yams_id)`:is=`en`:then=`[[AjaxSearch? &AS_landing=`60` &moreResultsPage=`8` &showMoreResults=`1` &addJscript=`0` &extract=`0` &AS_showResults=`0`]]`:else=`[[AjaxSearch? &AS_landing=`60` &moreResultsPage=`8` &showMoreResults=`1` &addJscript=`0` &extract=`0` &AS_showResults=`0` &language=`russian-utf8`]]`+]
make a chunk ajaxsearch_en containing
[[AjaxSearch? &AS_landing=`60` &moreResultsPage=`8` &showMoreResults=`1` &addJscript=`0` &extract=`0` &AS_showResults=`0` &language=`english`]]
and a chunk ajaxsearch_ru containing
[[AjaxSearch? &AS_landing=`60` &moreResultsPage=`8` &showMoreResults=`1` &addJscript=`0` &extract=`0` &AS_showResults=`0` &language=`russian-UTF8`]]
Then, in your document template or content include
[[YAMS? &get=`chunk` &from=`ajaxsearch`]]
3. Don’t assume that using both will just work together. Test carefully.