Closed Bahbv closed 3 years ago
No reaction on the issue so i just made my own snippet and that works like a charm. I guess the [[YAMS? &get=``]]
works a little weird.
My snippet 'lang'
<?php
$en;
$nl;
$lang;
if ($lang == 'nl'){
echo $nl;
} else if ($lang == 'en'){
echo $en;
}
Usage
[[lang? &lang=`(yams_id)` &nl=`[+txt_nl+]` &en=`[+txt_en+]`]]
This is enough for my usecase.
Hi! I've got a weird problem with yams in combination with pagebuilder. If my content has an
<li>
element the output in my pagebuilder block is totally empty.I use the following in my pagebuilder block TPL:
[[YAMS? &get=`text` &from=`en::<p>[+txt_en+]</p>||nl::<p>[+txt_nl+]</p>`]]
If[+txt_nl+]
or[+txt_en+]
contains a list with a<li>
element the output is empty.I think it has to do with YAMS but I'm not sure how I would troubleshoot/debug this..
If I dont use yams in the TPL like
[+txt_nl+]
it works. Also if I try this in the TPL[[YAMS? &get=`text` &from=`en::<p>[+txt_en+]</p>||nl::<p><ul><li>test</li></ul></p>`]]
it also works.Any suggestions how to debug this? Someone knows whats up?