[Typo3-dev] TCA problem.
Markus Lange
markus.lange at bgm-gmbh.de
Wed Apr 28 09:43:46 CEST 2004
> Stig N. Jepsen said:
> With the ExtKickstarter I have created the following:
>
> Table1 and Table2 and Table3.
>
> Table1 has a MM-relation to Table2
> Table2 has a relation to Table3 (containing names)
>
> My problem: (Backend)
> when I see the list of elements, I want the records of Table2 to display
> the
> name it's linking to in Table3 instead of the uid.
>
> When I edit a record of Table1, I can make several links to Table2
> (MM-relation), but again I only got the uid number.
>
> There must be some clever way.
>
> I have tried to use itemsProcFunc, to create a function which would get
> the
> names from Table3, but with no real success.
>
> Any ideas?
search for $TCA on typo3.org
you can use a userfunction for manupulating other records
example:
...
"config" => Array (
"type" => "input",
"wizards" => Array(
"_PADDING" => 0,
"_HIDDENFIELD" => 1,
"add" => Array(
"type" => "userFunc",
"notNewRecords" => "0",
"params" => Array(
"table"=>"tt_news_lang",
"pid"=>"_STORAGE_PID",
"fkey"=>"fkey",
"typefield"=>"type"
),
"userFunc" => "tx_bgmlanguages_wizard_editLang->main",
)
)
)
...
create extension with userfunc eg (you know how to do that?):
function main (&$conf,$object){
debug($conf);
}
youll see whats in there (data of actaul record ...)
send pm if you want to see a working example
--
Markus Lange
business group munich GmbH
Tel. + 49 89 / 660 7 999 - 36
Fax + 49 89 / 660 7 999 - 10
Mobil + 49 173 / 57 06 453
www.bgm-gmbh.de
http://typo3.bgm-gmbh.de
More information about the TYPO3-dev
mailing list