Skip to content
Snippets Groups Projects
Commit 1493dd90 authored by Steffen Kamper's avatar Steffen Kamper
Browse files

Fixed issue #17017: New pagetree doesn't work with all web submodules

git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10093 709f56b5-9817-0410-a4d7-c38de5d9e867
parent fc60e83f
Branches
Tags
No related merge requests found
2011-01-17 Steffen Kamper <steffen@typo3.org>
* Fixed issue #17017: New pagetree doesn't work with all web submodules
2011-01-16 Francois Suter <francois.suter@typo3.org>
 
* Follow-up to #16966: Missing trailing comma in sliding fields list caused SQL error
......
......@@ -255,6 +255,11 @@ class t3lib_loadModules {
}
}
// check if this is a submodule
if (strpos($name, '_') !== FALSE) {
list($mainModule, ) = explode('_', $name, 2);
}
$modconf = array();
$path = preg_replace('/\/[^\/.]+\/\.\.\//', '/', $fullpath); // because 'path/../path' does not work
if (@is_dir($path) && file_exists($path . '/conf.php')) {
......@@ -331,8 +336,13 @@ class t3lib_loadModules {
$modconf['navFrameScriptParam'] = $MCONF['navFrameScriptParam'];
}
// check if there is a navigation component (like the pagetree)
if (is_array($this->navigationComponents[$name])) {
$modconf['navigationComponentId'] = $this->navigationComponents[$name]['componentId'];
// check if the parent has a navigation component that also
// goes down to the submodules (if they haven't overwritten it yet)
} else if ($mainModule && is_array($this->navigationComponents[$mainModule])) {
$modconf['navigationComponentId'] = $this->navigationComponents[$mainModule]['componentId'];
}
} else {
return FALSE;
......@@ -486,4 +496,4 @@ if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLA
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_loadmodules.php']);
}
?>
\ No newline at end of file
?>
......@@ -5,15 +5,10 @@ if (!defined('TYPO3_MODE')) {
}
if (TYPO3_MODE === 'BE') {
$modules = array(
'web_layout', 'web_view', 'web_list', 'web_info', 'web_perm', 'web_func', 'web_ts',
'web_txrecyclerM1', 'web_txversionM1'
);
foreach ($modules as $module) {
t3lib_extMgm::addNavigationComponent($module, 'typo3-pagetree', array(
'TYPO3.Components.PageTree'
));
}
t3lib_extMgm::addNavigationComponent('web', 'typo3-pagetree', array(
'TYPO3.Components.PageTree'
));
$absoluteExtensionPath = t3lib_extMgm::extPath($_EXTKEY);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect'] = array_merge(
......@@ -28,4 +23,4 @@ if (TYPO3_MODE === 'BE') {
);
}
?>
\ No newline at end of file
?>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment