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

Kay Strobach typo3 at kay-strobach.de
Tue Mar 22 21:18:46 CET 2011


Hi,

	if (TYPO3_MODE == 'BE') {
		t3lib_div::loadTCA('pages');
		$TCA['pages']['columns']['module']['config']['items'][] = array(
		
'LLL:EXT:sitemgr/Resources/Private/Language/locallang_db.xml:tx_sitemgr_customer',
			'sitemgr'
		);
		t3lib_SpriteManager::addTcaTypeIcon('pages', 'contains-sitemgr',
t3lib_extMgm::extRelPath($_EXTKEY).'ext_icon.gif');
		#$ICON_TYPES['sitemgr'] = array('icon' =>
t3lib_extMgm::extRelPath($_EXTKEY).'ext_icon.gif');
	}

should do the trick.

Greetings
Kay

-- 
http://www.kay-strobach.de - Open Source Rocks


More information about the TYPO3-english mailing list