[TYPO3-german] Re: Pulldown bei einem Record-Objekt mit Daten füllen

Oliver Klee typo3-german-02 at oliverklee.de
Wed Nov 25 11:36:49 CET 2009


Hi,

A. Sauder schrieb:
> Nun möchte ich aber, das wenn ich in das Formular wechsle in einem
> solchen Record, ich dort
> ein Pulldown-Menü zur Verfügung habe, welches Werte aus einer anderen
> Tabelle ausliesst.

Das geht (in der tca.php) in etwa so:

'categories' => array(
	'exclude' => 1,
	'label' =>
'LLL:EXT:seminars/locallang_db.xml:tx_seminars_seminars.categories',
	'config' => array(
		'type' => 'select',
		'internal_type' => 'db',
		'allowed' => 'tx_seminars_categories',
		'foreign_table' => 'tx_seminars_categories',
		'foreign_table_where' => tx_seminars_tableRelations(
			'tx_seminars_categories'
		),
		'size' => 10,
		'minitems' => 0,
		'maxitems' => 999,
		'MM' => 'tx_seminars_seminars_categories_mm',
	),
),



Oliver


More information about the TYPO3-german mailing list