Answer the question
In order to leave comments, you need to log in
[[+content_image]]
How to display a record in two different versions?
Hello!
Created a tv parameter checkbox. When displaying in a template via pdoResources, you need to set &tpl depending on the selected checkbox.
Output code in the template
[[!pdoResources?
&parents=`0`
&resources=`-1`
&limit=`3`
&includeTVs=`big_img, article_label, type_of_article`
&tvPrefix=`tv.`
&tpl=`articleTypeOneTpl`
]]
Answer the question
In order to leave comments, you need to log in
Are you sure that [[+tv.type_of_article]] is getting the right value here?
As an option, check the condition in the chunk itself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question