Project

General

Profile

Actions

Feature #23294

closed

Adding new doktype - missing icon in treeview

Added by Claus Harup over 14 years ago. Updated about 6 years ago.

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

0%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

Description

After upgrading to 4.4.1 the page tree respects my own icons in the pages modules:

$ICON_TYPES['Denmark'] = array('icon' => t3lib_extMgm::extRelPath($_EXTKEY).'flags/denmark.gif');
$TCA['pages']['columns']['module']['config']['items'][] = array('denmark', 'Denmark', t3lib_extMgm::extRelPath($_EXTKEY).'flags/denmark.gif');

But creating a new doktype - the page does not respect my configuration:

global $PAGES_TYPES;
$PAGES_TYPES189 = Array(
"type" => "Directmail",
//"icon" => t3lib_extMgm::extRelPath('tcdirectmail')."mail.gif",
);

array_splice ($TCA["pages"]["columns"]["doktype"]["config"]["items"], 3, 0, array(array(
0 => "LLL:EXT:tcdirectmail/locallang_db.xml:pages.directmailtype",
1 => 189,
2 => t3lib_extMgm::extRelPath('tcdirectmail')."mail.gif"
))
);

$TCA['pages']['types']['189'] = array (
'showitem' => "......",
);

What am I doing wrong / missing?

(issue imported from #M15274)

Actions

Also available in: Atom PDF