Thema: tx_bookshelf
Einzelnen Beitrag anzeigen
  #2  
Alt 05.02.08, 13:19
turnamo turnamo ist offline
Forum Newbie
 
Registriert seit: 02.11.07
Alter: 20
Beiträge: 45

Inwischen bin ich hier gelandet. Funktioniert immernoch nicht. Aber vielleicht weiß nun jemand, worauf ich hinaus möchte.

Code:
    function main($content,$conf)    {
        $this->conf=$conf;
        $this->pi_setPiVarDefaults();
        $this->pi_loadLL();
        $this->templateCode = $this->cObj->fileResource($this->conf['templateFile']);

         $this->bookshelf = $this->cObj->getSubpart($this->templateCode, "###CONTENT###");
    
        $content.= $this->bookshelf();
    
        return $this->pi_wrapInBaseClass($content);
    }
    
    
/********************************************************

bookshelf()
Displays books of the shelf

********************************************************/    

function bookshelf()    {

        
        $select_fields='*';
        
        $from_table = 'tx_bookshelf_rack';    
        
        $where_clause="1 = 1 ";
        
        $groupBy='';
        
        $limit='9999';


        $res=$GLOBALS['TYPO3_DB']->exec_SELECTquery($select_fields,$from_table,$where_clause,$groupBy,$orderBy,$limit);
            
        $row=$GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
        
        $next_button=$this->pi_getLL($next);
        $prev_button=$this->pi_getLL($last);
        
        $overrulePIvars['next']['id']=$row['uid'];
        $marker['###NEXT_BUTTON###']=$this->pi_linkTP_keepPIvars($next_button,$overrulePIvars,$cache=0,$clearAnyway=0,$altPageId=0);
        unset($overrulePIvars);
        
        $overrulePIvars['last']['id']=$row['uid'];
        $marker['###PREV_BUTTON###']=$this->pi_linkTP_keepPIvars($prev_button,$overrulePIvars,$cache=0,$clearAnyway=0,$altPageId=0);
        unset($overrulePIvars);
        
            $Output.= $row['book_title']." \n";
            $Output.= $row['author']." \n";
            $Output.= $row['isbn']." \n";
            $Output.= $row['place']." <br /> \n"; 
        
            
        $content.=$this->cObj->substituteMarkerArrayCached($this->bookshelf,$marker,array(),array());
        return $Output;
        return $content;
        
        }
        
}
__________________
Jedweges Interesse beginnt mit einer dummen Frage.
Mit Zitat antworten