$c=$modx->getCollection('shopSize'); $sz=array(); foreach($c as $i){ $sz[$i->get('id')]=$i->get('name'); } $modx->setPlaceholder('shopSize',$sz); $c=$modx->getCollection('shopColor'); $cl=array(); foreach($c as $i){ $cl[$i->get('id')]=$i->get('name'); } $modx->setPlaceholder('shopColor',$cl);