Project

General

Profile

Actions

Bug #31288

closed

TCA renderMode "tree" issue

Added by Gabriel Kaufmann / Typoworx NewMedia over 12 years ago. Updated over 12 years ago.

Status:
Rejected
Priority:
-- undefined --
Category:
Backend API
Target version:
-
Start date:
2011-10-25
Due date:
% Done:

0%

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

Description

I am trying to implement the new renderMode "tree" feature in TCA for a custom database-table.

I am using IRRE to build a tree using the "irre_parentid"-field used for IRRE. Now I also need a TREE that is able to list all IRRE-Records in their correct order/relation.

I tried to implement the rendermode->tree for pages which works perfectly and shows a tree with relation between each uid/pid relation just as known from BE-PageTree.


[...]
'config' => array (
'type' => 'select',
'renderMode' => 'tree',
'treeConfig' => array(
'parentField' => 'pid',
'appearance' => array(
'expandAll' => true,
'showHeader' => true,
'nonSelectableLevels' => '',
),
),
'foreign_table' => 'pages',
),
[...]

Now I need this whereas the pid-Field just would need to be replaced with "irre_parentid" which is used in IRRE-Records to reference to the parent-record "uid". I should mention that the IRRE-Records are shown correctly (even with correct nesting between uid/irre_parentid).


[...]
'config' => array (
'type' => 'select',
'renderMode' => 'tree',
'treeConfig' => array(
'parentField' => 'irre_parentid',
'appearance' => array(
'expandAll' => true,
'showHeader' => true,
'nonSelectableLevels' => '',
),
),
'foreign_table' => 'tx_tnmnicefaq_items',
),
[...]

Now this doesn't return any records and shows only the table-name as "root" without any childs!

Where is the problem?

Actions

Also available in: Atom PDF