/** * generate the link for normal textlinks * * @param string $filterUid * @param string $option * @return string The complete link as A-Tag */ public function generateLink($filterUid, $option) { $filters = $this->pObj->filters->getFilters(); $params = array(); $params[] = '[page]=1'; $params[] = '[filter][' . $filterUid . '][' . $option['uid'] . ']=' . $option['tag']; $excludes = array(); $excludes[] = 'id'; $excludes[] = 'tx_kesearch_pi1[multi]'; // hook: modifyParamsForTextlinks // This is useful if you want to define special sortings for each textlink if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyParamsForTextlinks'])) { foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyParamsForTextlinks'] as $_classRef) { $_procObj =& TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj($_classRef); $_procObj->modifyParamsForTextlinks($params, $excludes, $option, $this->conf, $this->pObj); } } foreach ($params as $key => $value) { $params[$key] = $this->cObj->wrap($value, $this->pObj->prefixId . '|'); } $conf = array(); $conf['parameter'] = $this->conf['resultPage']; $conf['addQueryString'] = '1'; $conf['addQueryString.']['exclude'] = implode(',', $excludes); $conf['additionalParams'] = '&' . implode('&', $params); $number_of_results = $this->pObj->renderNumberOfResultsString($option['results'], $filters[$filterUid]); return $this->cObj->typoLink($option['title'] . $number_of_results, $conf); }