[TYPO3-german] Dynaflex geht nicht zu initialisieren?

demonking demonking at hotmail.de
Tue Sep 3 22:57:42 CEST 2013


Hallo,

da ich für ein Projekt die Möglichkeit brauche im Backend verschiedene
Elemente ein-/auszublenden, habe ich mich für dynaflex entschiedene.
Doch irgendwie komme ich mit der initialisierung klar.

Typo3 4.5.29
Dynaflex 1.13.2

Hoffe mir kann dabei jemand helfen hier das vorgehen wie ich es versucht
habe zu initialisieren:

ext_localconf.php

$GLOBALS['T3_VAR']['ext']['dynaflex']['tx_buildingreferences_reference'][]
= 'EXT:
building_references/class.tx_buildingreference_dynaflex.php:
                          tx_buildingreferences_reference_dynaflex';


class.tx_buildingreferences_reference_dynaflex.php:


class tx_buildingreferences_reference_dynaflex{


/*var $rowChecks = array (
    'list_type' => 'tx_buildingreferences_reference',
    'CType' => 'list'
);*/

var $DCA = array (
    0 => array (
        'path' =>
'tx_buildingreferences_domain_model_reference/columns/flexdata/config/ds/default',
        'modifications' => array (
            array (
                'method' => 'remove',
                'element' => 'city',
            ),

            array (
                'method' => 'remove',
                'element' => 'state',
            ),
         ),
    )
);
var $cleanUpField = 'flexdata';

//var $hooks = array(
'EXT:building_references/class.tx_buildingreferences_dcahooks.php:tx_buildingreferencess_dcahooks');
}


TCA/reference.php :


$TCA['tx_buildingreferences_domain_model_reference'] = array(
	'ctrl' => $TCA['tx_buildingreferences_domain_model_reference']['ctrl'],
	'interface' => array(
 	    'showRecordFieldList'=>'name,city,state,country,flexdata',
	),
	'types' => array(
		'1' => array('showitem' => 'name, city, state, country,flexdata'),
	),
	'palettes' => array(
		'1' => array('showitem' => ''),
	),
	'feInterface' =>
$TCA['tx_buildingreferences_domain_model_reference']['feInterface'],
	'columns' => array(				
		'city' => array(
			'exclude' => 0,
			'label' => 'city',
			'config' => array(
				'type' => 'input',
				'size' => 30,
				'eval' => 'trim'
			),
		),
		'country' => array(
			'exclude' => 0,
			'label' => 'country',
			'config' => array(
				'type' => 'select',
				'foreign_table' => 'tx_buildingreferences_domain_model_country',
				'minitems' => 0,
				'maxitems' => 1,
			),
		),
		'state' => array(
			'exclude' => 0,
			'label' => 'state',
			'config' => array(
				'type' => 'select',
				'foreign_table' => 'tx_buildingreferences_domain_model_state',
				'minitems' => 0,
				'maxitems' => 1,
			),
		),
		"flexdata" => Array (		
			"exclude" => 1,		
			'label' => 'flexdata',
			"config" => Array (
				'type' => 'flex',
				'ds' => array (
					'default' =>'<t3datastructure>'.
						'    <meta />' .
					'<langdisable>1</langdisable>' .
						'    </meta>' .
						'    <root>' .
						' <type>array</type>' .
						' <el>' .
						' <lol>mm</lol>' .
						' </el>' .
						' </root>' .
						'</t3datastructure>'
				 ),
			 )
		 ),
),
);





More information about the TYPO3-german mailing list