Bug #23922
closed[Feature] TCA tree
0%
Description
This feature renders a tree from TCA with the type "select" and renderMode "tree".
It uses the abstract tree classes, adds special tca tree classes and work with a minimum of configuration needed. it supports all properties that select supports.
It use an additional config parameter "treeConfig" which has following options:
parentField => the field where the parent id is defined
childField => the field where the child id is defined
appeareance => array:
expandAll => expands all nodes on show
showHeader => boolean, the header consists of a filter text with options, and icons for collapse/expand all
if size is defined, the tree height allow to show this amount of nodes
if autoSizemax is defined, it shows at least this amount of nodes before showing scroll bar
Please unzip the attached archive in typo3/sysext
For testing use the fe_groups field of pages, add the following to you extTables.php:
$GLOBALS['TCA']['pages']['columns']['fe_group']['config']['renderMode'] = 'tree'; //$GLOBALS['TCA']['pages']['columns']['fe_group']['config']['size'] = '6'; //$GLOBALS['TCA']['pages']['columns']['fe_group']['config']['autoSizeMax'] = '10'; $GLOBALS['TCA']['pages']['columns']['fe_group']['config']['treeConfig'] = array( 'parentField' => 'subgroup', 'appearance' => array( 'expandAll' => TRUE, 'showHeader' => TRUE, ) );
(issue imported from #M16228)
Files