php define typoscript from array of associative arrays

//build CONTENT objects
foreach ($items as $item) {

$newItem = ($x+1)*10;
$conf['10.'][$newItem] = 'CONTENT';
$conf['10.'][$newItem.'.'] = $dummyItem;
$conf['10.'][$newItem.'.']['select.']['uidInList'] = $item['uid'];
$conf['10.'][$newItem.'.']['select.']['pidInList'] = $item['pid'];
if($item['lock']) {$conf['10.'][$newItem.'.']['renderObj.']['stdWrap.']['dataWrap'] = $lConf['lockItemWrap'];} // special wrap to make item non-draggable and for providing custom CSS
$x++;

}

source

Leave a Reply