[TYPO3-english] Typo3 foreign_table: How to specify a specific column to a select drop down menu?

Mikel lists at con-version.com
Wed Oct 25 15:45:58 CEST 2017


I think, I now understand.
You just want to have a different label in your select box, right?

If so, you can change that in the TCA of Kunde.

'ctrl' => [
	'label' => 'name',

Change the value of label to ‚kundeuid'
Or add the „label_alt“ option.

But that would change the label of your records Kunde global. So your customers will also be shown with that label in the backend listing.

If you can’t change it global, you need to prepare your items by itemsProcFunc. You can pass the records to your own method and prepare them, before they are assigned to the dropdown.

BTW: In my opinion, this relation is more complicated than it should be. Do you want to group customers in that way? Or what is your target of ‚kundeuid‘? 


More information about the TYPO3-english mailing list