Created
August 19, 2016 19:42
-
-
Save Bjoelin/dadf1edf30b3d2995bd3b9e28b861191 to your computer and use it in GitHub Desktop.
TYPO3 - TCA Input Field Rendering Example - Select Tree
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
'selected_categories' => array( | |
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:selected_categories', | |
'config' => array( | |
'type' => 'select', | |
'renderType' => 'selectTree', | |
'foreign_table' => 'sys_category', | |
'foreign_table_where' => 'AND sys_category.sys_language_uid IN (0,-1) ORDER BY sys_category.title ASC', | |
'size' => 10, | |
'autoSizeMax' => 50, | |
'maxitems' => 9999, | |
'treeConfig' => array( | |
'parentField' => 'parent', | |
'appearance' => array( | |
'expandAll' => true, | |
'showHeader' => true, | |
), | |
), | |
) | |
), | |
'category_field' => array( | |
'label' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:category_field', | |
'config' => array( | |
'type' => 'select', | |
'renderType' => 'selectSingle', | |
'size' => 1, | |
'minitems' => 0, | |
'maxitems' => 1, | |
'itemsProcFunc' => \TYPO3\CMS\Core\Category\CategoryRegistry::class . '->getCategoryFieldsForTable', | |
) | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment