Issue Feature Closed

#23294Adding new doktype - missing icon in treeview

Claus Harup 07/28/10, 23:29 updated 10/02/18, 12:42

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.