Да, это возможно при использовании typeicon_column
и typeicons
. Пример:
$TCA['tx_mytable'] = array (
'ctrl' => array (
'iconfile' => t3lib_extMgm::extPath($_EXTKEY) . 'Resources/Private/Icons/default.png',
'typeicon_column' => 'mime_type',
'typeicons' => array (
'application/msword' => 'gfx/fileicons/doc.gif',
'application/msexcel' => 'gfx/fileicons/xls.gif',
'application/mspowerpoint' => 'gfx/fileicons/ppt.gif',
'application/pdf' => 'gfx/fileicons/pdf.gif',
'application/zip' => 'gfx/fileicons/zip.gif',
'image/bmp' => 'gfx/fileicons/bmp.gif',
'image/gif' => 'gfx/fileicons/gif.gif',
'image/jpeg' => 'gfx/fileicons/jpg.gif',
'image/jpg' => 'gfx/fileicons/jpg.gif',
),
)
);
=> http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.2.0/view/4/2/