[TYPO3-dev] Add View-Button for Records;	Was: "Save and View"-Button
    Stefan Geith 
    typo3dev2010.nospam1 at geithware.de
       
    Wed Jun 16 09:50:46 CEST 2010
    
    
  
Just to note the solution for 'How to add View-Button to Recordlist':
Use Hook:
require_once 
(PATH_typo3.'interfaces/interface.localrecordlist_actionsHook.php');
class tx_XYZ_dbListExtra_actionsHook implements 
localRecordList_actionsHook {
   public function makeControl($table, $row, $cells, &$parentObject){
     if (strcmp($table, $this->myTable)==0) {
       $url = '...';
       $icon = t3lib_iconWorks::getSpriteIcon('actions-document-view');
       $cells['view']='<a href="' . $url . '">' . $icon . '</a>';
     }
     return ($cells);
   }
}
/Stefan
    
    
More information about the TYPO3-dev
mailing list