[TYPO3-german] dynaflex 'insert sheets' bei source_config mit FlexForm-Field -> arbeitet nicht...

Johannes Konert johanneskonert at gmx.de
Wed Jun 28 18:35:20 CEST 2006


Guten Abend zusammen,
als begeisterter Nutzer der dynaflex-Extension habe ich gerade ein 
Problem mit dem generieren weiterer Sheets basierend auf einer Zahl, die 
  in der FlexForm eingegeben wurde.
Im dynaflex-Tut ist ein "ähnliches" Beispiel, welches allerdings ein 
normales Tabellen-Feld benutzt um die Zahl auszulesen. Ich möchte gerne 
ein FlexForm-Feld auslesen.
Der Doku entnehme ich, dass source_config einen 'table'-Name benötigt, 
das 'db_field' worin die FlexForm zu finden ist und den FlexForm-Pfad 
'path', sowie das darin enthaltene Feld 'xml_field.

ICH habe das Feld selbst über DynaFlex eingefügt (eine modification 
vorher), dann einen Wert eingegeben (im BE), gespeichert, doch nix passiert.
Eine "Kontrolle" des FlexForm-Arrays zeigt mir aber das das Feld ganz 
normal in der FlexForm der DB gespeichert wurde.
Wo liegt der Fehler?
Danke für Tipps.
Grüße
Johannes

Der Dynaflex-Teilcode: ($fields und $sheets sind okay, die benutze ich 
in anderen - funktionierenden modifications).

		// now setting level2 - inserting sheets
		$dca[$type]['modifications'][] = array (
				'method' => 'add',
				'type' => 'sheets',
				'source' => 'field',						// this time we use a field from the form 
as source
				'source_config' => array (
					'table' => $this->netpicTable,
					'db_field' => 'flexform',
					'path' => 'sheets/'.$sheets[0][0].'/ROOT/el',	// where the field is 
(on level 1)
					'xml_field' => 'NumChilds',							// and which field ?
				),
					// configure the sheets
				'sheet_config' => array (
					'label' => $sheets[1][0].' - ###SINDEX###',	// ###SINDEX### is 
replaced with the index of the cycle
					'name' => 'sheet',					// the name is appended by the index of the 
cycle
						// place some fields on each sheet, replacing and tailing is like 
for the sheet itself
					'fields' => array ( $fields ),	// has to be in one array more than 
for normal field_config
					
				),
		);



More information about the TYPO3-german mailing list