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

christian ewigfrost christian-kulozik at gmx.net
Wed Oct 25 16:00:02 CEST 2017


Quote: Mikel wrote on Wed, 25 October 2017 15:45
----------------------------------------------------
> 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'?
----------------------------------------------------

Thanks for the label tip... But actually what i want to do is soemthing else. I just find it hard to describe because it's the first time i work with TYPO3. I think the following describes it best:

I do not want to change the label field of the select items but rather change their values to a value other than the "uid" of the foreign records. That's exactly what i want to do, i want to assign the values of kundeuid to a value other than the "uid" of the foreign records. Is that possible?



More information about the TYPO3-english mailing list