Index: typo3/js/livesearch.js =================================================================== --- typo3/js/livesearch.js (revision 10170) +++ typo3/js/livesearch.js (working copy) @@ -31,7 +31,7 @@ autoSelect: false, ctCls: 'live-search-results', dataProvider: null, - dbListUrl : 'id=0&search_levels=4&search_field=', + searchResultsPid : 0, displayField: 'title', emptyText: null, enableKeyEvents: true, @@ -99,7 +99,7 @@ if (this.dataReader.jsonData.pageJump != '') { jump(this.dataReader.jsonData.pageJump, 'web_list', 'web'); } else { - TYPO3.ModuleMenu.App.showModule('web_list', this.dbListUrl + this.getValue()); + TYPO3.ModuleMenu.App.showModule('web_list', this.getSearchResultsUrl(this.getValue())); } } } @@ -170,7 +170,7 @@ // go to db_list.php and search for given search value // @todo the current selected page ID from the page tree is required, also we need the // values of $BE_USER->returnWebmounts() to search only during the allowed pages - TYPO3.ModuleMenu.App.showModule('web_list', this.dbListUrl + this.getValue()); + TYPO3.ModuleMenu.App.showModule('web_list', this.getSearchResultsUrl(this.getValue())); this.collapse(); } } @@ -270,6 +270,10 @@ TYPO3.BackendLiveSearch.superclass.reset.apply(this, arguments); }, + getSearchResultsUrl : function(searchTerm) { + return 'id=' + this.searchResultsPid + '&search_levels=4&search_field=' + searchTerm; + }, + addIframeListeners : function () { // Add an event handler to each iframe, closing the search window when there's a click inside the iframe // @todo Is there a cleaner way to handle this? @@ -306,7 +310,8 @@ helpTitle: TYPO3.LLL.liveSearch.helpTitle, emptyText: TYPO3.LLL.liveSearch.emptyText, loadingText: TYPO3.LLL.liveSearch.loadingText, - listEmptyText: TYPO3.LLL.liveSearch.listEmptyText + listEmptyText: TYPO3.LLL.liveSearch.listEmptyText, + searchResultsPid: TYPO3.configuration.firstWebmountPid }); TYPO3LiveSearch.applyToMarkup(Ext.get('live-search-box')); Index: typo3/backend.php =================================================================== --- typo3/backend.php (revision 10170) +++ typo3/backend.php (working copy) @@ -599,7 +599,8 @@ ), 'FileUpload' => array( 'maxFileSize' => t3lib_div::getMaxUploadFileSize() - ) + ), + 'firstWebmountPid' => intval($GLOBALS['WEBMOUNTS'][0]) ); if ($GLOBALS['LANG']->charSet !== 'utf-8') { $t3Configuration['username'] = $GLOBALS['LANG']->csConvObj->conv($t3Configuration['username'], $GLOBALS['LANG']->charSet, 'utf-8');