Feature #24605 ยป 17074_v1.diff
t3lib/class.t3lib_extmgm.php (Arbeitskopie) | ||
---|---|---|
$GLOBALS['TBE_MODULES']['_navigationComponents'][$module] = array(
|
||
'componentId' => $componentId,
|
||
'extKey' => $GLOBALS['_EXTKEY'],
|
||
'isCoreComponent' => FALSE,
|
||
'extDirectNamespaces' => $extDirectNamespaces
|
||
);
|
||
}
|
||
/**
|
||
* Registers a core navigation component
|
||
*
|
||
* @param string $module
|
||
* @param string $componentId
|
||
* @param array $extDirectNamespaces
|
||
* @return void
|
||
*/
|
||
public static function addCoreNavigationComponent($module, $componentId, $extDirectNamespaces = array()) {
|
||
self::addNavigationComponent($module, $componentId, $extDirectNamespaces);
|
||
$GLOBALS['TBE_MODULES']['_navigationComponents'][$module]['isCoreComponent'] = TRUE;
|
||
}
|
||
/**************************************
|
||
*
|
||
* Adding SERVICES features
|
typo3/backend.php (Arbeitskopie) | ||
---|---|---|
$component = strtolower(substr($info['componentId'], strrpos($info['componentId'], '-') + 1));
|
||
$componentDirectory = 'components/' . $component . '/';
|
||
$absoluteComponentPath = t3lib_extMgm::extPath($info['extKey']) . $componentDirectory;
|
||
$relativeComponentPath = t3lib_extMgm::extRelPath($info['extKey']) . $componentDirectory;
|
||
if ($info['isCoreComponent']) {
|
||
$absoluteComponentPath = PATH_t3lib . 'js/extjs/' . $componentDirectory;
|
||
$relativeComponentPath = '../' . str_replace(PATH_site, '', $absoluteComponentPath);
|
||
} else {
|
||
$absoluteComponentPath = t3lib_extMgm::extPath($info['extKey']) . $componentDirectory;
|
||
$relativeComponentPath = t3lib_extMgm::extRelPath($info['extKey']) . $componentDirectory;
|
||
}
|
||
$cssFiles = t3lib_div::getFilesInDir($absoluteComponentPath . 'css/', 'css');
|
||
if (file_exists($absoluteComponentPath . 'css/loadorder.txt')) {
|
||
//don't allow inclusion outside directory
|