[TYPO3-dev] Get extKey from classname

Steffen Kamper info at sk-typo3.de
Sat Aug 30 12:52:48 CEST 2008


Steffen Kamper schrieb:
> Hey Dmitry,
> 
> Dmitry Dulepov [typo3] schrieb:
>> Actually, you could reply on $GLOBALS['_EXTKEY'] for this particular 
>> case. It is defined when this function is called in ext_localconf.php.
>>
> 
> excellent, this is exactly i was looking for :-)
> 
> you can check this, i love it.
> 
> add this lines in extMgm::addPlugin at the beginning:
> 
> $_EXTKEY = $GLOBALS['_EXTKEY'];
> if (!$itemArray[2]) {
>    $itemArray[2] = t3lib_extMgm::extRelPath($_EXTKEY) . 'ext_icon.gif';
> }
> 
> clear cache, and now all plugins are displayed with extIcon if they 
> don't have defined one.
> 
> Great!
> 
> vg Steffen
> 
> 

patch is in core list with screenshot attached.

vg Steffen




More information about the TYPO3-dev mailing list