Is it possible to call a MIGX list item into another resource?
MIGX can show multidateTV?
<?php
switch ($task) {
case 'set':
if (isset($_GET['offset'])) {
$total = $modx->getPlaceholder('migx_total');
$offset = $_GET['offset'] + 24;
$offset = $offset >= $total ? 0 : $offset;
} else {
$offset = 24;
}
return $offset;
break;
case 'get':
$offset = isset($_GET['offset'])? $_GET['offset'] : 0;
$modx->setPlaceholder('migx_offset+24',$offset+24);
return $offset;
break;
}
<div id="galsites" class="grid_9"> [[!getImageList? &offset=`[[!handleOffset? &task=`get`]]` &limit=`24` &totalVar=`migx_total` &tvname=`prodImg`&tpl=`thumbTpl`]] <a id="next" href="[[~[[*id]]? &offset=`[[!handleOffset? &task=`set`]]`]]"> Next - [[+migx_offset+24]]/[[+migx_total]]</a> </div>
<div class="portfolio_item float alpha"> <a title="[[+title]]" rel="prodslide" href="#"> <span>[[+title]]</span> <img alt="[[+title]]" src="[[+image:phpthumbof=`w=223&h=112&zc=1`]]" /> </a> <div style="display:none;"> <div class="inline"> <img alt="[[+title]]" src="[[+image:phpthumbof=`w=650&h=435&zc=1`]]" /> <div>[[+description]]</div> </div> </div> </div>
$sortBy = $modx->getOption('sortBy', $scriptProperties, '');
$sortOrder = $modx->getOption('sortOrder', $scriptProperties, 'asc');
// v1.1
if( array_search( $sortBy , array_Keys($items) ) !== FALSE ) {
foreach($items as $k=>$v) {
$b[$k] = $v[$sortBy];
}
switch( $sortDir ) {
case'asc':
asort( $b );
break;
case'desc':
arsort( $b );
break;
default:
asort( $b );
break;
}
foreach($b as $key=>$val) {
$c[$key] = $items[$key];
}
$items = $c;
}
mypageitleA==mypagetitleA:theID
,renderFirst : function(val, md, rec, row, col, s){
val = val.split(':');
return val[0];
} {"header": "MYFIELD", "width": "100", "sortable": "false", "dataIndex": "myfield","renderer":"this.renderFirst"}, <?php
$val = explode(':',$input);
return $val[1];[[+myfield:renderSecond]]
This discussion is closed to further replies. Keep calm and carry on.