Project

General

Profile

Actions

Bug #23922

closed

[Feature] TCA tree

Added by Steffen Kamper about 14 years ago. Updated over 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 #1

Updated by Steffen Kamper about 14 years ago

committed in 5 parts to trunk rev 9250-9254

Actions #2

Updated by Ingo Renner about 14 years ago

Fixed target version, always set target to final release, use "Fixed in Version" for specific preview releases...

Actions #3

Updated by Susanne Moog over 13 years ago

  • Target version deleted (4.5.0)
Actions #4

Updated by Gone With the Wind over 12 years ago

What exactly is the status quo of this situation here? I'd be interested in a more detailed discussion about how to use treeview in FE and BE.

Thanks,
Robert

Actions #5

Updated by Lorenz Ulrich over 12 years ago

doc_core_tca is your friend for backend. I wouldn't know about a FE usage.

Actions #6

Updated by Benni Mack over 2 years ago

  • Related to Bug #84051: SelectTree (Category Tree) - add horizontal scrolling added
Actions

Also available in: Atom PDF