[TYPO3-english] adding new pagetype (icon fails)

Josef Florian Glatz typo3 at josdesign.at
Tue Mar 22 20:52:26 CET 2011


Hi list,

I've tried to make a new pagetype with an icon.

The type itself appeares in the backendform, but no icon appears in 
select and pagetree.

this is my code:

$PAGES_TYPES['50'] = array(
	'icon' => $ext_path .'res/image.png',
	'allowedTables' => 'pages,pages_language_overlay,tt_content',
	'onlyAllowedTables' => '0'
);	
t3lib_div::loadTCA('pages');
$pageItems = &$TCA['pages']['columns']['doktype']['config']['items'];
array_push($pageItems, array('Sponsor Image nativ', '50'));


res/image.png exists! are there any changes in TYPO3 4.5 to add such a 
pagetype?

thanks in advance!

-- 
Regards,
Josef Florian Glatz
http://typo3blog.at | http://josdesign.at


More information about the TYPO3-english mailing list