DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
Registering the provider¶
As shown in section Screenshots, you have the opportunity to register your provider and add it to the selector of registered providers:
Sample code to be added to your ext_tables.php
file:
if (TYPO3_MODE === 'BE') {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['direct_mail_userfunc']['userFunc'][] = array(
'class' => 'yourClass',
'method' => 'yourMethod',
'label' => 'Some Label'
);
}
This will add a new entry “Some Label” that fills in provider yourClass->yourMethod
when selected:
Tip
- Parameter
label
of the registration code supports a localized label definition such asLLL:EXT:direct_mail_userfunc/Resources/Private/Language/locallang.xlf:
userfunction.myRecipientList
- Providers are automatically sorted by label in the selector