[TYPO3-english] Re: How to hook TYPO3 Form submit
Florian Rival
florian.typo3 at oktopuce.fr
Wed Oct 25 09:48:30 CEST 2017
Hi Chris,
Yes, you should write your own extension if you want to add a specific hook but you don't need to have a full MVC extension.
Your extension should have a directory Hook like this :
typo3conf/ext/MyExt/Classes/Hook/XxxxxxHook.php
The hook must be registered in file typo3conf/ext/MyExt/ext_localconf.php, something like this (depending on the hook to implement and Typo3 version used) :
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/db_layout.php']['drawHeaderHook'][] = \Vendor\MyExt\Hook\XxxxxxHook::class.'->MyClass;
--
-- Florian Rival --
www.oktopuce.fr
More information about the TYPO3-english
mailing list