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 #1

Updated by Steffen Ritter over 14 years ago

easiest way to solve it:
uncomment the //icon and have a look at your deprecation log...

please update your data accordingly

Actions #2

Updated by Claus Harup over 14 years ago

Brillant advice :-)

Perfect tool - deprecationlog!!!

Actions #3

Updated by Steffen Ritter over 14 years ago

so thisis solved and can be closed?

Actions #4

Updated by Claus Harup over 14 years ago

Yes - works fine for me!! :-)

Actions #5

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF