Project

General

Profile

Actions

Bug #23922

closed

[Feature] TCA tree

Added by Steffen Kamper over 13 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-11-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

icons.zip (1.65 KB) icons.zip Administrator Admin, 2010-11-02 19:31
16228_extjs_tcatree.diff (93 KB) 16228_extjs_tcatree.diff Administrator Admin, 2010-11-02 19:31

Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #84051: SelectTree (Category Tree) - add horizontal scrollingNew2018-02-26

Actions
Actions

Also available in: Atom PDF