Created
May 8, 2018 18:34
-
-
Save kitzberger/3220c267921cc3b81b9620b79a48d90d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ext_tables.sql | |
CREATE TABLE tx_xxxxxxx_domain_model_record ( | |
... | |
type int(11) unsigned DEFAULT '0', | |
... | |
); | |
// TCA | |
'type' => [ | |
'exclude' => false, | |
'label' => 'LLL:EXT:xxxxxxx/Resources/Private/Language/locallang_db.xlf:xxxxx.type', | |
'config' => [ | |
'type' => 'select', | |
'renderType' => 'selectSingle', | |
'default' => 0, // necessary for TYPO3 to allow the null-option | |
'items' => [ | |
['', 0], // null-option | |
], | |
'foreign_table' => 'tx_xxxxxx_domain_model_type', | |
'minitems' => 0, | |
'maxitems' => 1, | |
], | |
], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment