[TYPO3] backend 1-1 table relation

Gijs Epping gijs.epping at efocus.nl
Tue Jan 22 13:24:05 CET 2008


Hello,

I only need to get a title from a other table, the uid's are the same.

Company:-------------
uid = 1
title = 'company name'


Employee:------------
uid = 23
title = 'employee name'
company_uid = 1


The idea is that when you open employee for editing (backoffice) you see 
the company name in a not editable field (only for reference)


Is it possible to solve this without a MM table?

example code in employee TCA:
		"company_id" => Array (		
			"exclude" => 1,		
			"label" => "Company name:",		
			"config" => Array (
				"type" => "none",	
				"internal_type" => "db",	
				"allowed" => "company",	
				'foreign_table' => 'company',
				'foreign_field' => 'uid',		
			)
		),	


Thanks in advance
regards Gijs


More information about the TYPO3-english mailing list