Hi All,
modx revo 2.5.2
getresources 1.5.1
localhost mamp 5.3.2
if 1.1
The scenario is I wish to use getresources to generate a list of boxes and the box size is determined through a template variable checkbox within my template.
The getResources resides in the template and calls the 'item' chunk
[[!getResources?
&tpl=`item`
&limit=`100`
&includeTVs=`1` &processTVs=`1` &tvPrefix=`` &parents=`4` &includeContent=`1` &showHidden=`1`
]]
'item' chunk
[[If? &subject=`[[+item_size]]` &operator=`EQ` &operand=`yes` &then=`[[$item-small]]`&else=`[[$item-large]]`]]
"item_size" TV input type radio buttons - Input Option Values yes==yes||no==no
item-small chunk -
<div class=" item" style="">
<div class="item-inside">
<h3>[[+pagetitle]]</h3>
</div>
</div>
item-large chunk
<div class="item col2">
<div class="item-inside">
<h3>[[+pagetitle]]</h3>
</div>
</div>
A list is generated and the radio button tv does determine the size of the box generated however the box [[+pagetitle]] always shows the first box name rather than the box it represents.
Hope this is clear and anyone can help.
Thanks in advance.