[Typo3] dynamic $this->internal["maxPages"] (browse box)

Chi Hoang chibo at gmx.de
Sat Sep 17 13:07:13 CEST 2005


christian oettinger schrieb:
> thanks for your help, but in my case the code looks a bit different:
> 
> for($a=0;$a<$max;$a++)    {
>     $links[]='
>         <td'.($pointer==$a?$this->pi_classParam('browsebox-SCell'):'').' 
> nowrap="nowrap"><p>'.
>              
> $this->pi_linkTP_keepPIvars(trim($this->pi_getLL('pi_list_browseresults_page','Page',TRUE). 
> 
>                 ' 
> '.($a+1)),array('pointer'=>($a?$a:'')),$this->pi_isOnlyFields($this->pi_isOnlyFields)). 
> 
>                 '</p></td>';
> }
> 
> instead of your example i have the code "array('pointer'=>($a?$a:''))" 
> which in fact I don't quite understand.
> what coukd I change here to get the same result?


try this:
for($a=0;$a<$max;$a++)    {
     $links[]='
 
<td'.($pointer==$a?$this->pi_classParam('browsebox-SCell'):'').' 
nowrap="nowrap"><p>'.
 
$this->pi_linkTP_keepPIvars(trim($this->pi_getLL('pi_list_browseresults_page','Page',TRUE).
                 ' 
'.($pointer+$a+1)),array('pointer'=>($a?$pointer+$a:'')),$this->pi_isOnlyFields($this->pi_isOnlyFields)).
                 '</p></td>';
}


btw: where do you got this code?

Greets,

Chi



More information about the TYPO3-english mailing list