//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++;
}
php define typoscript from array of associative arrays
Leave a Reply
You must be logged in to post a comment.