Es ist zum Haareraufen...
Ich habe Dynaflex zum Laufen gekriegt, er generiert mir auch soviele Sheets wie ich in einem Feld angebe.
Jetzt möchte ich in jedem Sheet wieder ein Feld haben, dass soviele sheets generiert wie da angeben.
Also ich habe zB. Sheet 1, darin möchte ich nun nochmal 23 sheets generieren. geht das?
Ich bekomme es nicht hin, das Flexformfeld auslesen zu lassen und dann die sheets reinzugenerieren, auch kann ich keine Felder mehr anhängen.
Bilder:
Bild: eichenschule.de/…/Bild2.jpg
Bild 1: Ich generiere jetzt 4 Blöcke.
Bild: eichenschule.de/…/Bild1.jpg
Bild 2: Jetzt habe ich vier Felder generiert, jetzt will ich die Sitzreihen angeben und er soll mir dann nochmal soviele scheets oder von mir aus auch Felder generieren, wie die Zahl in "Anzahl der Reihen".
Weiß jemand Rat?
Quellcode meiner class.tx_ctticketsystem_dfconfig.php:
<?php
/**
* This class provides a set of configs for DynaFlex. It contains a complete DCA that configures
* how an existing flexform is modified by DynaFlex.
* It also contains a simple example for a hook, that modfies the DCA.
*/
class tx_ctticketsystem_dfconfig {
var $DCA = array (
0 => array (
'path' => 'tx_ctticketsystem_seatingplan/columns/flexdata/config/ds/default',
'modifications' => array (
array (
'method' => 'add',
'type' => 'sheets',
'source' => 'field',
'source_config' => array (
'table' => 'tx_ctticketsystem_seatingplan',
'db_field' => 'blocks',
),
'sheet_config' => array (
'label' => 'Block ###SINDEX###',
'name' => 'sheet',
'fields' => array (
array (
'label' => 'LLL:EXT:ct_ticketsystem/locallang_db.xml:tx_ctticketsystem_blocks.name',
'name' => 'blockname',
'config' => array (
'type' => 'input',
'size' => '30',
)
),
array (
'label' => 'LLL:EXT:ct_ticketsystem/locallang_db.xml:tx_ctticketsystem_blocks.rownumber',
'name' => 'rownumber',
'config' => array (
'type' => 'input',
'size' => '30',
)
),
),
),
array (
'method' => 'add',
'type' => 'sheets',
'source' => 'field',
'source_config' => array (
'path' => 'ROOT/el',
'xml_field' => 'rownumber', ),
'sheet_config' => array (
'label' => 'Block ###SINDEX###',
'name' => 'sheet',
'fields' => array (
array (
'label' => 'LLL:EXT:ct_ticketsystem/locallang_db.xml:tx_ctticketsystem_blocks.name',
'name' => 'blocknwame',
'config' => array (
'type' => 'input',
'size' => '30',
)
)
),
)
)
)
)
)
);
var $cleanUpField = 'flexdata';
}
?>