I’m using Evolution 1.0.2, YAMS 1.1.7 alpha RC 8, PHx 2.1.3.
I try to use Ditto with PHx on my multilingual pages. This does not work correctly. I have read about problems with Ditto and PHx (in combination with YAMS), but I still do not know if my problem is in my code or in YAMS/Ditto/PHx.
I have followed the Howtos in the YAMS documentation. My "normal" Ditto-template works very good in multilingual context.
But when I use PHx in the template, it does not work as expected. To tell the truth: I have not yet recognized a pattern of "what works" and what does not.
Thus, I have edited my template, so that I explicitly use "_(yams_id)" as suffix:
[+bild:ne=``:then=`[+introtext_(yams_id):ne=``:then=`<a href="[~[+id+]~]"><img src="[+bild+]" alt="" width="100"/></a>`:else=`<img src="[+bild+]" alt="" width="100"/>`+]`:else=``+]
[+introtext_(yams_id):ne=``:then=`<p>[+introtext_(yams_id)+] <a href="[~[+id+]~]">» mehr</a></p>`:else=`[+content_(yams_id)+]`+]
It is quite long, because there are case differentiations. If [tt]introtext_(yams_id)[/tt] is set, the template should output the introtext and a link to the content. It the introtext is left empty, the content is output directly. This works very fine for me on many monolingual websites I have created. But not with yams.
What can I still do? I bet there is a solution. Even it is not too convenient, there must be a solution.
Thanks in advance
EDIT: I forgot to mention my Ditto call:
[!Ditto? &tpl=`tplNews` &display=`8` &extenders=`@FILE /assets/modules/yams/yams.extender.inc.php` &id=`(yams_id)` &language=`(yams_mname)` &orderBy=`menuindex DESC` &noResults=` `!]