[TYPO3-ect] Additional params in resultbrowser
Søren Andersen
hacksaw at zpeed.dk
Thu Feb 7 21:28:01 CET 2008
Hi
Im using the resultbrowser in one of my extensions, but I have a small
problem. As Im not very good at using lib/div yet, I dont understand how I
feed the resultbrowser with some additional parameters. I have my plugin on
a page, and when category=x is set, the content of category with id x is
displayed. Its this content that I use the resultbrowser with, but the
resultbrowser doesnt include ?category=x, this means that it wont work.
I have: $browser = $this->makeInstance('tx_lib_resultBrowserSpl', $model);
I expect that its related to this code in tx_lib_resultBrowser_model.php:
function makeUrl($offset){
if($this->pagerIndexMode) { // Use view number instead of results offset.
$offset = floor($offset/$this->resultsPerView);
}
$parameters =
$this->parameters;
$parameters[$this->offsetName] = (integer) $offset;
$conf['additionalParams'] = $this->makeUrlParameters('&' .
$this->controller->getDefaultDesignator(), $parameters);
How do I reach this $conf[additionalParams]? One more thing, I know its
not right to use just category as the get parameter, but thats what was
done when this got coded, how do I avoid that it prefixes category with
anything?
Regards,
Søren Andersen
More information about the TYPO3-team-extension-coordination
mailing list