[TYPO3-timtab] Comment Numbering per Page

N.Andriopoulos nand at orbitech.gr
Tue Feb 19 17:23:20 CET 2008


Hello,
 
though this is my email to the list, I've read quite a few threads from the archives regarding the setting up of TIMTAB ( since I am required to deploy it for a customer's website ) -- so first off, thanks :)
 
Once problem I was still having was that comment numbering ( marker ###BLOG_COMMENT_NUM### ), would reset to 1 if used with pagination. I haven't found any other solution, so I would like to offer mine :
 
in class.tx_timtab_fe.php find (around line 117, in the init() function):
 
if($this->calledBy == 've_guestbook' && !$this->pObj->cObj->getCurrentVal()) {
    $this->pObj->cObj->setCurrentVal(0);
  }
 
and replace with this:
 
if($this->calledBy == 've_guestbook' && !$this->pObj->cObj->getCurrentVal()) {
    $this->pObj->cObj->setCurrentVal($this->pObj->piVars['pointer']*$this->pObj->internal['results_at_a_time']);
  }
 
Hope this helps others; if there is a better solution, please advise.
Best regards,
Andriopoulos Nick.


More information about the TYPO3-project-timtab mailing list