Skip to content

Instantly share code, notes, and snippets.

@hojaonline
Last active November 3, 2018 14:36
Show Gist options
  • Select an option

  • Save hojaonline/6bb29f481ac29865ce03db0b953edd7d to your computer and use it in GitHub Desktop.

Select an option

Save hojaonline/6bb29f481ac29865ce03db0b953edd7d to your computer and use it in GitHub Desktop.

Register your hook class in local configuration (ext_localconf.php):

` $GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][''] = 'NXS\NxsReferenzen\Hook\TCEmainHook';

$GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][''] = 'NXS\NxsReferenzen\Hook\TCEmainHook';`

Ensure your hook class has namespace declaration: `

'; var_dump($command); echo '
';
        die();
    }
}

`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment