[Typo3-dev] $TCA question - default for 'select' type
Albert van der Veen
albert.van.der.veen at xs4all.nl
Wed Nov 9 16:15:29 CET 2005
Hello list,
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-dev
mailing list