Answer the question
In order to leave comments, you need to log in
How to display one value in getimagelist?
getImageList has &where and &value parameters, I think that through one of them it is possible, but so far I have not seen any examples.
Answer the question
In order to leave comments, you need to log in
I think it will be given to someone:
mycode.in.ua/modx/typical-ex/migx-package
output from getImageList one by one additional snippet: Snippet
name "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;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question