Index: pi1/class.tx_templavoila_pi1.php =================================================================== --- pi1/class.tx_templavoila_pi1.php (revision 32387) +++ pi1/class.tx_templavoila_pi1.php (working copy) @@ -500,6 +500,9 @@ // For each DS element: foreach($DSelements as $key => $dsConf) { + // Store key of DS element being handled in global register + $GLOBALS['TSFE']->register['tx_templavoila_pi1.current_field'] = $key; + // Array/Section: if ($DSelements[$key]['type']=='array') { /* no DS-childs: bail out