質問

I want to add a new icon just near to edit icon in TCA list view . Is there any standard way to implement this .

enter image description here

To implement this add this in your ext_localconf.php

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

And in your class file add this

class name_of_the_class implements TYPO3\CMS\Filelist\FileListEditIconHookInterface {

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

 }

enter image description here

役に立ちましたか?

解決

Take a look in the source, in the file :

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

There are hook for manipulating icons. You should find what you need.

Take a look in the other files of the module too.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top