[TYPO3-irre] ItemProcFunc and title

Nikolas Hagelstein hagelstein at shr.cc
Thu May 3 18:53:58 CEST 2007


Oliver Hader wrote:

> Could you please post the TCA configuration of that field of the
> intermediate table? 
Sure:

Parent:
$TCA["tx_myext_cost_centres"] = array (
....
		"admin_users" => Array (
			"exclude" => 1,
			"label" =>
"LLL:EXT:myextension/locallang_db.xml:whatever",
			'config' => Array(
				'type' => 'inline',
				'foreign_table' => 'tx_myext_mm',
				'foreign_field' => 'cost_centre',
				'foreign_selector' => 'admin_user',
				'foreign_unique' => 'admin_user',
				'foreign_label' => 'admin_user',
				'appearance' => Array(
					'useCombination' => 0,
				),
			),
		),
	),


Intermediate:
$TCA["tx_myext_mm"] = array (
	 ...
	 'admin_user' => Array(
		 'label' =>
'LLL:EXT:myextension/locallang_db.xml:whatever',
		 'config' => Array(
			'type' => 'select',
			'itemsProcFunc' =>
'tx_meyext_itemFunc->adminUsers',
			'size' => 1,
			'minitems' => 0,
			'maxitems' => 1,
		 ),
	 ),
....

Bye,
Nikolas


More information about the TYPO3-project-irre mailing list