[TYPO3-ect] Additional params in resultbrowser

Søren Andersen hacksaw at zpeed.dk
Thu Feb 7 21:28:01 CET 2008


Hi

 

I’m using the resultbrowser in one of my extensions, but I have a small
problem. As I’m not very good at using lib/div yet, I don’t 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. It’s this content that I use the resultbrowser with, but the
resultbrowser doesn’t include ?category=x, this means that it won’t work. 

 

I have: $browser = $this->makeInstance('tx_lib_resultBrowserSpl', $model);

 

I expect that it’s 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 it’s
not right to use just “category” as the get parameter, but that’s 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