[Typo3-dev] TCA defaults for selectorbox ignored

Ingo Renner typo3 at ingo-renner.com
Mon Jun 13 13:02:31 CEST 2005


Hi all,

I extended the pages table with a selectorbox with items who need to be in
order (in my case numbers from 0 to 10). Now I want to set 5 as default.

'tx_test_priority' => Array (
  'exclude' => 1,      
  'label' => 'LLL:EXT:test/locallang_db.php:pages.tx_test_priority',
  'config' => Array (
    'type' => 'select',
    'items' => Array (
      Array('LLL:EXT:test/locallang_db.php:pages.tx_test_priority.I.0', 0),
      Array('LLL:EXT:test/locallang_db.php:pages.tx_test_priority.I.1', 1),
      Array('LLL:EXT:test/locallang_db.php:pages.tx_test_priority.I.2', 2),
      Array('LLL:EXT:test/locallang_db.php:pages.tx_test_priority.I.3', 3),
      Array('LLL:EXT:test/locallang_db.php:pages.tx_test_priority.I.4', 4),
      Array('LLL:EXT:test/locallang_db.php:pages.tx_test_priority.I.5', 5),
      Array('LLL:EXT:test/locallang_db.php:pages.tx_test_priority.I.6', 6),
      Array('LLL:EXT:test/locallang_db.php:pages.tx_test_priority.I.7', 7),
      Array('LLL:EXT:test/locallang_db.php:pages.tx_test_priority.I.8', 8),
      Array('LLL:EXT:test/locallang_db.php:pages.tx_test_priority.I.9', 9),
      Array('LLL:EXT:test/locallang_db.php:pages.tx_test_priority.I.10',
10),
    ),
    'default' => '5',
    'size' => 1,
    'maxitems' => 1,
    )
),

But of course it's not working =/. I had a look at the text w/image content
element which sets a default value for the image position in TCA, it's
working for the CE but not for my EXT.

Any ideas?

greetings
Ingo


-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/




More information about the TYPO3-dev mailing list