5
我在Typo3 4.5中用extbase和fluid進行了擴展。現在插入一些數據,我使用後端模塊的'列表',它使表格的TCA具有一些形式。 爲了使選擇框可選,我的外部表像這樣前插入一個項目:TYPO3 TCA select,項目數組中的NULL值
'feuser' => array(
'exclude' => 0,
'label' => 'LLL:EXT:yes/Resources/Private/Language/locallang_db.xml:tx_yes_domain_model_schools.feuser',
'config' => array(
'type' => 'select',
'items' => array(
array('', NULL),
),
'foreign_table' => 'fe_users',
'maxitems' => 1,
),
),
現在,因爲我在我的數據庫有關係(與NULL alowed),我必須插入一個空值。但是,這樣做不起作用。我也嘗試過「」,「」和0.但這些都不起作用。
我將不勝感激任何幫助。
工程像一個魅力 – Mateng 2013-06-03 21:09:22
** update:**''items'=> [[''label',value,'icon(optional)']]' - [TCA Reference](https://docs.typo3 .org/typo3cms/TCAReference/Reference/Columns/Select/Index.html#items)我用0作爲值,默認爲0 ... – webMan 2016-12-13 11:29:30