[TYPO3] About bahag_photogallery

Tapio Markula tapio.markula at dnainternet.net
Wed Apr 26 10:25:14 CEST 2006


Tapio Markula wrote:

this function has some errors
> function getNavigation($mode=1) {

The first item should be:

>     if (is_array($nav) && !empty($nav)) {
>         if($mode==2 && $itemCount >0 && 
> !empty($nav['prev']['resultPage']) && !($nav['curr']['resultPage'] ==2))

the last item

>         if($mode==2 && count($nav)>0 && 
> !empty($nav['next']['resultPage']) && !((&lastResultPage-1) 
> == $nav['curr']['resultPage']))
>             {           
>             $urlParameters = array('resultPage' => $itemCount,
>             'gallery' => $this->currentGalleryID
>             );
>             $content .= ' <a href = 
> '.$this->getUrl($GLOBALS["TSFE"]->id, 
> $urlParameters).'>'.$this->pi_getLL('last_page').'</a>  ';           
>             }
>     }   
>        
> 
>     return $content;
> }

Well a question. How I could know the quantity of resultpages
and then define &lastResultPage.
I have only info what is prev, next and current.
Needs chages to other classes too.



More information about the TYPO3-english mailing list