Думаю кому-нибудь поданобится:
mycode.in.ua/modx/typical-ex/migx-package
вывод из getImageList по одиночке доп.сниппет:
Название сниппета "migxitem"
$tpl = 'tpl.ParallaxBanner';
if (isset($options)){
$options = explode('&tpl=',$options);
$key = intval($options[0]) - 1;
$tpl = $options[1];
}else{
$key = 0;
}
$data = $modx->fromJSON($input);
$data = $data[$key];
$output = $modx->getChunk($tpl,$data);
return $output;
Вызов снипетта: [[*banner:migxitem=`1&tpl=tpl.Item`]]
Мне понадобилось, когда перевёрстывать после тильды не хотелось, и проще было по одиночке распихать, или кучу условий чанках расписывать.