<?php
$parent='3';
$sortby='pagetitle';
$c = $modx->newQuery('modResource');
$c->where(array('parent'=>$parent));
$c->sortby($sortby);
$collection = $modx->getCollection('modResource',$c);
$output='kein Artikel==0';
foreach ($collection as $o){
$output .= '||'.$o->get('pagetitle').','.$o->get('publishedon').'=='.$o->get('id');
}
return $output;
[{
"caption":"Image", "fields":"[
{"field":"title","caption":"Title","description":"of the slide."},{"field":"imgUrl","caption":"Image","inputTV":"image"}]"
}][
{"header":"Title","width":"20","sortable":"true","dataIndex": "title"},
{"header":"Image","width":"20","sortable":"false","dataIndex": "image","renderer":"this.renderImage"}][[!getImageList? &tpl=`dm-portfolioSliderImg` &tvname=`dm-portfolioSliderImgTV` &toSeparatePlaceholders=`MIGX` ]] [[+MIGX.0]] [[+MIGX.1]] [[+MIGX.2]] [[+MIGX.3]] [[+MIGX.4]] [[+MIGX.5]]
<img src="[[+imgUrl]]" alt="[[+title]]" width="320px" height="240px"/>
<td>
<td>
This discussion is closed to further replies. Keep calm and carry on.