[Typo3-dev] Setting a checkbox to checked by default

S. Teuber traveler_in_time at gmx.net
Thu Jan 29 15:56:58 CET 2004


Hi Mathias,


>> ext_tables.php:
>> ------------------- start --------------------
>> $tempColumns = Array (
>> 'tx_myext_ft1' => Array (
>> 'exclude' => 1,
>> 'label' => 'LLL:EXT:my_ext/locallang_db.php:pages.tx_myext_ft1',
>> 'config' => Array (
>> 'type' => 'check',
>
> 'default' => '1',
>
>> 'cols' => 4,
>> 'items' => Array (
>> Array('LLL:EXT:my_ext/locallang_db.php:pages.tx_myext_ft1.I.0', ''),
>> Array('LLL:EXT:my_ext/locallang_db.php:pages.tx_myext_ft1.I.1', ''),
>> Array('LLL:EXT:my_ext/locallang_db.php:pages.tx_myext_ft1.I.2', ''),
>
> Maybe.. not sure about that one.

Not quite... this way, the first checkbox gets checked by default, but the 
second and third doesn't. :P

Thanx anyway,

Sven




More information about the TYPO3-dev mailing list