Index: t3lib/class.t3lib_browsetree.php =================================================================== --- t3lib/class.t3lib_browsetree.php (Revision 7049) +++ t3lib/class.t3lib_browsetree.php (Arbeitskopie) @@ -167,6 +167,23 @@ } return $title; } + + /** + * Adds a red "+" to the input string, $str, if the field "php_tree_stop" in the $row (pages) is set + * + * @param string Input string, like a page title for the tree + * @param array record row with "php_tree_stop" field + * @return string Modified string + * @access private + */ + function wrapStop($str, $row) { + if ($row['php_tree_stop']) { + $str .= ' + + + '; + } + return $str; + } } if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_browsetree.php']) { Index: t3lib/class.t3lib_treeview.php =================================================================== --- t3lib/class.t3lib_treeview.php (Revision 7049) +++ t3lib/class.t3lib_treeview.php (Arbeitskopie) @@ -547,7 +547,7 @@ */ function wrapStop($str,$row) { if ($row['php_tree_stop']) { - $str.='+ '; + $str.='+ '; } return $str; } Index: typo3/browse_links.php =================================================================== --- typo3/browse_links.php (Revision 7049) +++ typo3/browse_links.php (Arbeitskopie) @@ -133,6 +133,23 @@ */ function main() { + // Clear temporary DB mounts + $tmpMount = t3lib_div::_GET('setTempDBmount'); + if (isset($tmpMount)) { + $GLOBALS['BE_USER']->setAndSaveSessionData('pageTree_temporaryMountPoint',intval($tmpMount)); + } + + // Set temporary DB mounts + $tempDBmount = intval($GLOBALS['BE_USER']->getSessionData('pageTree_temporaryMountPoint')); + if ($tempDBmount) { + $altMountPoints = $tempDBmount; + } + + if ($altMountPoints) { + $GLOBALS['BE_USER']->groupData['webmounts'] = implode(',', array_unique(t3lib_div::intExplode(',', $altMountPoints))); + $GLOBALS['WEBMOUNTS'] = $GLOBALS['BE_USER']->returnWebmounts(); + } + $this->content = ''; // look for alternativ mountpoints Index: typo3/class.browse_links.php =================================================================== --- typo3/class.browse_links.php (Revision 7049) +++ typo3/class.browse_links.php (Arbeitskopie) @@ -1405,6 +1405,21 @@ $pagetree->thisScript = $this->thisScript; $tree=$pagetree->getBrowsableTree(); $cElements = $this->expandPage(); + + // Outputting Temporary DB mount notice: + if (intval($GLOBALS['BE_USER']->getSessionData('pageTree_temporaryMountPoint'))) { + $link = '' . + $LANG->sl('LLL:EXT:lang/locallang_core.xml:labels.temporaryDBmount', 1) . + ''; + $flashMessage = t3lib_div::makeInstance( + 't3lib_FlashMessage', + $link, + '', + t3lib_FlashMessage::INFO + ); + $dbmount = $flashMessage->render(); + } + $content.= ' - +
'.$this->barheader($GLOBALS['LANG']->getLL('pageTree').':').$tree.''.$this->barheader($GLOBALS['LANG']->getLL('pageTree').':').$dbmount.$tree.' '.$cElements.'
Index: typo3/sysext/rtehtmlarea/mod3/browse_links.php =================================================================== --- typo3/sysext/rtehtmlarea/mod3/browse_links.php (Revision 7049) +++ typo3/sysext/rtehtmlarea/mod3/browse_links.php (Arbeitskopie) @@ -67,6 +67,19 @@ function main() { // Setting alternative web browsing mounts (ONLY local to browse_links.php this script so they stay "read-only") $altMountPoints = trim($GLOBALS['BE_USER']->getTSConfigVal('options.pageTree.altElementBrowserMountPoints')); + + // Clear temporary DB mounts + $tmpMount = t3lib_div::_GET('setTempDBmount'); + if (isset($tmpMount)) { + $GLOBALS['BE_USER']->setAndSaveSessionData('pageTree_temporaryMountPoint',intval($tmpMount)); + } + + // Set temporary DB mounts + $tempDBmount = intval($GLOBALS['BE_USER']->getSessionData('pageTree_temporaryMountPoint')); + if ($tempDBmount) { + $altMountPoints = $tempDBmount; + } + if ($altMountPoints) { $GLOBALS['BE_USER']->groupData['webmounts'] = implode(',', array_unique(t3lib_div::intExplode(',', $altMountPoints))); $GLOBALS['WEBMOUNTS'] = $GLOBALS['BE_USER']->returnWebmounts(); Index: typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php =================================================================== --- typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php (Revision 7049) +++ typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php (Arbeitskopie) @@ -822,14 +822,30 @@ $pagetree->addField('nav_title'); $tree=$pagetree->getBrowsableTree(); $cElements = $this->expandPage(); - $content.= ' + + + // Outputting Temporary DB mount notice: + if (intval($GLOBALS['BE_USER']->getSessionData('pageTree_temporaryMountPoint'))) { + $link = '' . + $LANG->sl('LLL:EXT:lang/locallang_core.xml:labels.temporaryDBmount', 1) . + ''; + $flashMessage = t3lib_div::makeInstance( + 't3lib_FlashMessage', + $link, + '', + t3lib_FlashMessage::INFO + ); + $dbmount = $flashMessage->render(); + } + + $content .= ' - - + +
'.$this->barheader($LANG->getLL('pageTree').':').$tree.''.$cElements.'' . $this->barheader($LANG->getLL('pageTree') . ':') . $dbmount . $tree . '' . $cElements . '
';