Posted By

jpdamen on 12/21/07


Tagged

php textmate typoscript arrays associative


Versions (?)

php define typoscript from array of associative arrays


 / Published in: R
 

  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  

You need to login to post a comment.