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

Kay Strobach typo3 at kay-strobach.de
Wed Mar 23 19:26:41 CET 2011


Hello Josef,

this way adds a new module icon (like the one for tt_news).
I don't know if it was exactly what you wanted.
The ^^ sings define the name of the module and how the icon is bound to
which value.

If you wanna add an additional PageType beside standard, shortcut,
sysfolder, you may also load the tca and than add new items.

Take a look into the following file around line 717, there is should be
anything related to pagetypes ;)

typo3/sysext/cms/tbl_cms.php

Regards
Kay

Am 23.03.2011 09:55, schrieb Josef Florian Glatz:
> Am 22.03.2011 21:18, schrieb Kay Strobach:
>> 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');
>>     }
> 
> thx kay for your answer!
> 
> but where can I define the doktype-id (e.g. 45)
> 


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


More information about the TYPO3-english mailing list