在TCA列表视图中添加新图标

时间:2014-01-23 08:18:55

标签: php typo3 typoscript

我想在TCA列表视图中的编辑图标旁边添加一个新图标。有没有任何标准的方法来实现这一点。

enter image description here

要实现此功能,请在ext_localconf.php中添加此内容

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['fileList']['editIconsHook'][] = 'EXT:ext_key/path_to_class_file:name_of_the_method';

在您的班级文件中添加此

class name_of_the_class implements TYPO3\CMS\Filelist\FileListEditIconHookInterface {

   public function manipulateEditIcons(&$cells, &$parentObject){
      // Your code here 
   }

 }

enter image description here

1 个答案:

答案 0 :(得分:1)

在文件中查看来源:

typo3_src+dummy-6.1.3/typo3/sysext/filelist/Classes/FileList.php

有操纵图标的钩子。 你应该找到你需要的东西。

看看模块的其他文件。