[TYPO3] Problems using dynaflex extension

ferry at cipher.demon.nl ferry at cipher.demon.nl
Tue Oct 10 12:11:56 CEST 2006


Hi all,

I am trying to use the dynamic flexform extension (dynaflex) and I've run into a
problem.

My problem is the following:
I'd like to add some fields depending on another field, but it doesn't seem to
work.
This is the code I'm using:
'modifications' => array (
       		array (
                'method' => 'add',
                'path' => 'ROOT/el',
                'type' => 'field',
                'field_config' => array (
                    'name' => 'df_field_0',
                    'label' => 'my source dynaflex field',
                    'config' => array (
                           'type' => 'input'
                    )
                )
            ),
	array (
                'method' => 'add',
                'type' => 'field',
                'source' => 'field',
                'conditions' => array (
                	'if' => 'isEqual',
                	'source' => 'db',
                	'table' => 'tt_content',
                	'select' => 'parameters',
                	'where' => 'uid=###uid###',
                	'isXML' => true,
                	'path' => 'ROOT/el/',
                	'xml_field' => 'df_field_0',
                	'compareTo' => 'condition',
                ),
                 'field_config' => array (
                    'name' => 'df_field_1',
                    'label' => 'my conditional dynaflex field',
                    'config' => array (
                           'type' => 'input'
                    )

                )
            ),
	)

The flexform is saved in the column "parameters" of the "tt_content" table. The
first field is the source field and the second should be added if the first
field has the value "condition".

I hope you can help me with this.

Ferry



More information about the TYPO3-english mailing list