[Typo3] $TCA question - default for 'select' type - 'SOLVED'

Albert van der Veen albert.van.der.veen at xs4all.nl
Thu Nov 10 16:11:09 CET 2005


Sorry about this one - code below DOES work, forgot to empty the cache...

At 12:24 PM 11/10/2005, you wrote:
>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
>
>
>_______________________________________________
>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