I'm trying to output an html block using migxLoopCollection and a template but all that is ever returned from migxLoopCollection is the array enclosed by a <pre>-tag.
[[migxLoopCollection?
&classname=`Match`
&packageName=`matches`
&limit=`1`
&tpl=`tpl.boomerang.match-block`
]]
The template:
<div class="wp-block article grid bb">
<div class="article-image">
<img src="images/default.jpg" alt="">
</div>
<span class="article-category">[[+series]]</span>
<h3 class="title">
<a href="" hidefocus="true">[[+description]]</a>
</h3>
<p>
[[+matchdate]]</br>
[[+facility]]
</p>
</div>
Expected output:
<div class="wp-block article grid bb">
<div class="article-image">
<img src="images/default.jpg" alt="">
</div>
<span class="article-category">P15 4F</span>
<h3 class="title">
<a href="" hidefocus="true">IFK Tumba FK 1 - Mälarhöjdens IK 2</a>
</h3>
<p>
2015-05-17 11:15:00</br>
Storvretens BP 1
</p>
</div>
Actual output:
<pre>Array
(
[id] => 26
[series] => P15 4F
[description] => IFK Tumba FK 1 - Mälarhöjdens IK 2
[facility] => Storvretens BP 1
[matchid] => 151152033
[matchdate] => 2015-05-17 11:15:00
[_alt] => 0
[_first] => 1
[_last] => 1
[idx] => 1
[property.classname] => Match
[property.packageName] => matches
[property.tpl] => tpl.boomerang.match-block
[property.limit] => 1
[property.debug] => 0
)
</pre>
MIGX version is 2.9.3-pl and MODX is 2.3.3 on modxcloud
What could cause this? It seems to me (from the contents of the array) that MIGX is getting the correct data from the db and that my parameters are applied.