[Typo3] $TCA question - default for 'select' type
Albert van der Veen
albert.van.der.veen at xs4all.nl
Thu Nov 10 12:24:35 CET 2005
Hello list,
- posted this earlier in the 'dev' list, but this is probably a better place -
I use the static language table in a plugin and would like to have a
default language selected. But this code (in tca.php) doesn't work:
"language" => Array (
"exclude" => 1,
"label" => "LLL:EXT:user_hria/locallang_db.php:user_hria_tools.language",
"config" => Array (
"type" => "select",
"foreign_table" => "static_languages",
"foreign_table_where" => "ORDER BY static_languages.uid",
"size" => 1,
"minitems" => 0,
"maxitems" => 1,
"default" => "6", // this should set the selector box on language with
uid = 6
)
),
What am I doing wrong?
thanks,
Albert van der Veen
More information about the TYPO3-english
mailing list