I have an issue with my custom hook. I created a new hook and declare it in ext_localconf.php file. When I perform action to delete file from the filelist, I need to call in my hook method processCmdmap_deleteAction(). It doesn’t work now, because my file has been deleted without perform my method where I want to delete my other records. I’m sure this issue is related with this method processCmdmap_deleteAction and my hook (db table and structure is configured properly).
Do you have any idea, why Typo3 can’t run my custom hook and mentioned method when I delete record from the filelist page in the backend side of Typo3 instance?
What I did:
- check ext_localconf.php configuration
$GLOBALS[‘TYPO3_CONF_VARS’][‘SC_OPTIONS’][‘t3lib/class.t3lib_tcemain.php’][‘processCmdmapClass’][‘extensionName’] = extensionNameBackendHooksMyCustomHook::class;
- check method processCmdmap_deleteAction in default hook of Typo3 instance (in my opinion I should use this method to delete my records, when I delete file)
- another hook methods works properly (for example I use methodprocessDatamap_postProcessFieldArray to update my records in my custom table in db)
- check documentation and another threads in stack to get some more information how to solve this issue, but without effect
- ask ChatGPT to get some tips, but without effect too
- search some tips in the web, but I didn’t found solution
Greetings, Chanyss921