[TYPO3-dev] Get extKey from classname
Steffen Kamper
info at sk-typo3.de
Fri Aug 29 23:16:44 CEST 2008
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
More information about the TYPO3-dev
mailing list