you can have a simple snippet, which switches between listing and detail - view:
<?php
//[[switchMigxDetailView? &detailChunk=`detailChunk` &listingChunk=`listingChunk`]]
$properties['migx_id'] = $modx->getOption('migx_id',$_GET,'');
if (!empty($properties['migx_id'])){
$output = $modx->getChunk($detailChunk,$properties);
}
else{
$output = $modx->getChunk($listingChunk);
}
return $output;
?>
replace the getImageList-call with this snippet-tag:
[[switchMigxDetailView? &detailChunk=`detailChunk` &listingChunk=`listingChunk`]]
then have two chunks, one with the normal Listing, the other one with the getImageList-call for the Detail-View:
[[!getImageList? &tvname=`yourTvname` &tpl=`detailTpl` &where=`{"MIGX_id":"[[+migx_id]]"}`]]
in your listing-getimagelist-tpl you will need a link:
<a href="[[~[[*id]]? &migx_id=`[[+MIGX_id]]`]]">view details</a>
does this work? Didn't test it, just an idea
...............
and please put MIGX - related questions into the MIGX - board of this forum!
[ed. note: Bruno17 last edited this post 13 years, 10 months ago.]