[TYPO3] Name instead of UID in extension

Jeppe Donslund jd at webmasters.dk
Tue Aug 7 15:23:09 CEST 2007


Hi John.

I have tried to figure out how to solve it with the TCA. I'll read some 
more.

My TCA for det field is:

"crossreferences" => Array (		
	"exclude" => 1,		
	"label" => 
"LLL:EXT:wm_pf_videos/locallang_db.xml:tx_wmpfvideos_videos.crossreferences", 
	
	"config" => Array (
		"type" => "select",	
		"foreign_table" => "tx_wmpfvideos_videos",	
		"foreign_table_where" => "ORDER BY tx_wmpfvideos_videos.uid",	
		"size" => 5,	
		"minitems" => 0,
		"maxitems" => 10,	
		"MM" => "tx_wmpfvideos_videos_crossreferences_mm",
	)
)



John de Stigter skrev:
> Hi,
> 
> Did you study TCA? How are your tables defined? Did you set a field as
> label?
> 
> For documentation on TCA check:
> http://typo3.org/documentation/document-library/core-documentation/doc_c
> ore_api/4.1.0/view/4/1/
> 
> Cheerios,
> RJ
> 
> 
>> Hi
>>
>> I am working on an extension which contains a M-M relation 
>> between tables. In BE this is shown as a selectorbox with the 
>> selectable in the right box.
>>
>> But they are listet by UID so it is quite confusing. Couldn't 
>> it be another field instead? Eg. Title?
>>
>> Regards,
>> Jeppe D.
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>


More information about the TYPO3-english mailing list