Project

General

Profile

Bug #24136 ยป 16841.diff

Administrator Admin, 2010-12-27 16:47

View differences:

t3lib/extjs/dataprovider/class.extdirect_dataprovider_backendlivesearch.php (working copy)
);
/**
* @var array
*/
protected $helpContent = array(
'title' => 'How to use advanced search tags',
'text' => 'Search in certain tables:<br />page:Home will search for all pages with the title "Home"',
'keys' => array(),
);
/**
* @var t3lib_search_livesearch
*/
protected $liveSearch = null;
......
return $this->searchResults;
}
/**
* Build up and retrieve the general and custom help text "How can you search"
*
* @return array
*/
public function getHelp() {
$content = array();
$this->helpContent['keys'] = $this->getRegisteredHelpContent();
return $this->helpContent;
}
/**
* Find all registerd help information.
*
* @return array All registered help content will collected returned
* @todo Doesn't actually return any data
*/
public function getRegisteredHelpContent() {
$helpArray = array();
$liveSearchConfiguration = ((is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch'])) ? $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch'] : array());
foreach ($liveSearchConfiguration as $key => $table) {
$helpArray[] = '#' . $key;
}
return $helpArray;
}
}
?>
typo3/classes/class.livesearch.php (working copy)
public function render() {
$this->addJavascriptToBackend();
return '<div class="live-search-wrapper">
<span title="Search" class="t3-icon t3-icon-apps t3-icon-apps-toolbar t3-icon-toolbar-menu-search">&nbsp;</span>
<span title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:search') .'" class="t3-icon t3-icon-apps t3-icon-apps-toolbar t3-icon-toolbar-menu-search">&nbsp;</span>
<input id="live-search-box" />
</div>';
}
    (1-1/1)