[TYPO3-german] Extension mit Datenbankrelation - Wie kann ich die Ansicht konfigurieren

Oliver Lamm mail at oliverlamm.de
Tue Feb 22 19:18:02 CET 2011


Am 22.02.2011 17:08, schrieb Bjoern Pedersen:
[...]

>>
> wie sieht deine TCA-Konfiguration aus?
> ich habe:
>
>                  'label'     =>  'name',
>                  'label_alt' =>  'firstname',
>                  'label_alt_force'=>  1,
>
> Das gibt dann name,firstname.
>
> Björn

Hi Björn,

so sieht es aus:

'organiser' => array (		
			'exclude' => 0,		
			'label' => 
'LLL:EXT:dhckv_regattakalender/locallang_db.xml:tx_dhckvregattakalender_event.organiser', 
	
			'label_alt' => 'short',
			'label_alt_force' => 'true',
			'config' => array (
				'type' => 'select',	
				'items' => array (
					array('',0),
				),
				'foreign_table' => 'tx_dhckvregattakalender_organiser',	
				'foreign_table_where' => 'ORDER BY 
tx_dhckvregattakalender_organiser.name',	
				'size' => 1,	
				'minitems' => 0,
				'maxitems' => 1,	
				'wizards' => array(
					'_PADDING'  => 2,
					'_VERTICAL' => 1,
					'add' => array(
						'type'   => 'script',
						'title'  => 'Create new record',
						'icon'   => 'add.gif',
						'params' => array(
							'table'    => 'tx_dhckvregattakalender_organiser',
							'pid'      => '###CURRENT_PID###',
							'setValue' => 'prepend'
						),
						'script' => 'wizard_add.php',
					),
					'list' => array(
						'type'   => 'script',
						'title'  => 'List',
						'icon'   => 'list.gif',
						'params' => array(
							'table' => 'tx_dhckvregattakalender_organiser',
							'pid'   => '###CURRENT_PID###',
						),
						'script' => 'wizard_list.php',
					),
					'edit' => array(
						'type'                     => 'popup',
						'title'                    => 'Edit',
						'script'                   => 'wizard_edit.php',
						'popup_onlyOpenIfSelected' => 1,
						'icon'                     => 'edit2.gif',
						'JSopenParams'             => 
'height=350,width=580,status=0,menubar=0,scrollbars=1',
					),
				),
			)
		),


More information about the TYPO3-german mailing list