Hi, I'm using MIGx to out blocks on content onto a page. Each block consists of main content, sidebar content and option to insert an image.
The image field is a nested MIGx that enables the user to insert more than one image and if they do, the image area becomes a carousel.
I'm experiencing some intermittent weirdness however > on most pages everything is working as expected, however on a couple of pages, blocks with a [[+total]] count of 1 are outputting the wrong code chunk.
I have tried both of the following methods (with same result):
#Option: 1
[[If?
&subject=`[[getImageList?
&value=`[[+sectionimage]]`
&tpl=`@CODE:[[+total]]`
]]`
&operator=`<=`
&operand=`1`
&then=`[[getImageList? &value=`[[+sectionimage]]` &tpl=`section-imagery`]]`
&else=`
<div class="carousel-half">
<div class="prev"> </div>
<div class="next"> </div>
<ul>
[[getImageList? &value=`[[+sectionimage]]` &tpl=`carousel`]]
</ul>
</div><!--carousel-half end-->
`]]
#Option: 2
[[!getImageList? &value=`[[+sectionimage]]` &tpl=`@CODE:[[+total]]` &toPlaceholder=`section-output`]]
[[+section-output:lte=`1`:then=`
[[getImageList? &value=`[[+sectionimage]]` &tpl=`section-imagery`]]
`:else=`
<div class="carousel-half">
<div class="prev"> </div>
<div class="next"> </div>
<ul>
[[getImageList? &value=`[[+sectionimage]]` &tpl=`carousel`]]
</ul>
</div><!--carousel-half end-->
`]]
Any ideas?