php define typoscript from array of associative arrays


/ Published in: R
Save to your folder(s)



Copy this code and paste it in your HTML
  1. //build CONTENT objects
  2. foreach ($items as $item) {
  3.  
  4. $newItem = ($x+1)*10;
  5. $conf['10.'][$newItem] = 'CONTENT';
  6. $conf['10.'][$newItem.'.'] = $dummyItem;
  7. $conf['10.'][$newItem.'.']['select.']['uidInList'] = $item['uid'];
  8. $conf['10.'][$newItem.'.']['select.']['pidInList'] = $item['pid'];
  9. if($item['lock']) {$conf['10.'][$newItem.'.']['renderObj.']['stdWrap.']['dataWrap'] = $lConf['lockItemWrap'];} // special wrap to make item non-draggable and for providing custom CSS
  10. $x++;
  11.  
  12. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.