Hi,
Is there a way, in the Grid Columns, to show the name and not the value of the "Listbox (Single Select)" TV?
<?php
$val = explode(':',$input);
return $val[1];
case 'in':
$operand = is_array($operand) ? $operand:
explode(',', $operand);
$output = in_array($subject, $operand) ? $then:
(isset($else) ? $else : '');
break;
case 'find':
case 'find_in_set':
$subject = explode(',', $subject);
$output = in_array($operand , $subject) ? $then : (isset($else) ? $else : '');
break;
case 'find_pd':
case 'find_in_pipesdelimited_set':
$subject = explode('||', $subject);
$output = in_array($operand , $subject) ? $then : (isset($else) ? $else : '');
break;
&value=`[[+sortedjson]]`
//do here your array-sorting
$params = $scriptProperties;
$params['value'] = $modx->toJson($sortedarray);
$modx->runSnippet('getImageList',$params);This discussion is closed to further replies. Keep calm and carry on.