In the screencast you’re using @EVAL to run getResources or some sort of @SELECT?

Input Type: checkboxSortable Input Option Values: @SELECT `pagetitle`,`id` FROM `[[+PREFIX]]site_content` WHERE `parent` = 6 AND `published`= 1 Output Type: Delimiter Delimiter: ,
[[getResourcesMMDE? &resources=`[[*Selection]]` &sortby=`resources` &tpl=`mySampleTPL` &sortdir=`ASC` &depth=`1` &limit=`10` &includeContent=`1` &tvPrefix=`` &includeTVs=`1` &showHidden=`1` &processTVs=`1`]]
[[+pagetitle]] <br /> [[+content]] <br />

.
[[affichageArtisteEnTournee? & tvname=`ArtistesTournee`]]
$tvname = $modx->getOption('tvname', $scriptProperties, '');
$docid = $modx->getOption('docid', $scriptProperties, $modx->resource->get('id'));
$tpl1="bloc_list_artiste";
if ($tvname == '')
{
return;
}
$tv = $modx->getObject('modTemplateVar', array ('name'=>$tvname));
$outputvalue = $tv->renderOutput($docid);
$items =explode(",",$outputvalue);
$chunk1 = $modx->getObject('modChunk', array ('name'=>$tpl1));
$template1 = $chunk1->getContent();
if (count($items) > 0)
{
foreach ($items as $item)
{
$object=$modx->getObject('modResource',array('id'=>$item));
$pagetitle=$object->get('pagetitle');
$itemArr=array();
$itemArr['pagetitle']=$pagetitle;
$itemArr['id']=$item;
$chunk1 = $modx->newObject('modChunk');
$chunk1->setCacheable(false);
$output .= $chunk1->process($itemArr, $template1);
}
}
return $output;
<p> <a href="[[~[[+id]]]]" rel="lienInterne" title="[[+pagetitle]]"><img src="[[!premierePhotoArtiste? &id=`[[+id]]` &field=`Galerie`]]" alt="[[+pagetitle]]" /><span>[[+pagetitle]]</span></a> </p>
@EVAL return $modx->runSnippet('ListeArtistesPourTv',array("idRessource" =>"2"));
$query = $modx->newQuery('modResource', array('parent' => $idRessource, 'deleted' => false, 'published' => true));
$children = $modx->getCollection('modResource', $query);
$resourceIds = "";
$i=0;
foreach ($children as $child) {
if ($i!=0) {
$resourceIds.="||";
}
$resourceIds .= $child->get('pagetitle');
$resourceIds.="==";
$resourceIds .= $child->get('id');
$i++;
}
return $resourceIds;
if ($sortby != 'resources') $criteria->sortby($sortby, $sortdir);
if ($sortby != '`modResource`.resources') $criteria->sortby($sortby, $sortdir);
if(is_array($globalresources) && $sortby=='resources')
if(is_array($globalresources) && $sortby=='`modResource`.resources')
haha.. thanks a lot.
A minor thing: The checkboxSortable input remembering just the order of an active chosen items and those checked-one’s (chosen one’s) are showed up at the top of the list in the input-list while all the unActive(unchecked) items are unordered at the bottom (in fact you can’t order them cause it won’t remember and will order them by id at the bottom).
Another thing is when deleting for good a resource that has been checked somewhere before, it still appears in the input as checked but the label of the checkbox is empty cause it remembering the selection of it, but that might be just an issue of how modx handles inputs rather than an `checkboxSortable` bug.
I Think that it would be much better if while rendering the tv input in the manager it would cross-check if the stored values are those who appears as part of your `Input Option Values`
).so if you change your input option values/or deleting a resource/chunk/whatever you don’t need to go and update the tv all across your site.
Bruno to the rescue..
Bruno’s fix + lexicon support added on my fork. I can request a pull if you want MadeMyDay. Gonna try to make a script to manualy package the stuff.
Once again, much thanks for your awesome work guys