Skip to content
Snippets Groups Projects
Commit ac95bc0e authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Update readme, removing whitespace in code samples of deprecation warnings

parent ab44931a
No related branches found
No related tags found
1 merge request!11Feature security update
...@@ -381,7 +381,7 @@ class MailController extends ActionController { ...@@ -381,7 +381,7 @@ class MailController extends ActionController {
} }
// provide code example on how to register correctly // provide code example on how to register correctly
$code = '$GLOBALS[\'sgmail\'][\'' . $extensionName . '\'][\' ' $code = '$GLOBALS[\'sgmail\'][\'' . $extensionName . '\'][\''
. \str_replace('.php', '', $configFile) . \str_replace('.php', '', $configFile)
. '\'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(\'' . '\'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(\''
. $extensionName . '\') . \'/Configuration/SgMail/' . $configFile . '\';'; . $extensionName . '\') . \'/Configuration/SgMail/' . $configFile . '\';';
......
...@@ -23,8 +23,12 @@ sg_mail ist multi-site and multi-language ready. ...@@ -23,8 +23,12 @@ sg_mail ist multi-site and multi-language ready.
### Registering your Extension ### Registering your Extension
To register your extension with sg_mail, you need a **Configuration File** for each template you want to integrate. To register your extension with sg_mail, you need a **Configuration File** for each template you want to integrate.
It needs be a *.php* file and has to be inside the Configuration folder **typo3conf/ext/{your_extension}/Configuration** of your extension. It needs be a *.php* file and has to be inside the Configuration folder **typo3conf/ext/{your_extension}/Configuration/Sgmail** of your extension.
The naming of the file should be in upper camel case, matching your template name.
Additionally you need to make your registration file known in your **ext_local_conf.php** file:
// register mail templates
$GLOBALS['sgmail']['my_extension_key']['unique_template_name'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('my_extension_key') . '/Configuration/SgMail/MyTemplate.php';
sg_mail will automatically parse valid configuration files of all extensions within your TYPO3 instance. sg_mail will automatically parse valid configuration files of all extensions within your TYPO3 instance.
...@@ -159,11 +163,6 @@ This happens also if the given iso code of the language is not known (inside the ...@@ -159,11 +163,6 @@ This happens also if the given iso code of the language is not known (inside the
In your template editor you have automatically all languages of your page shown. In your template editor you have automatically all languages of your page shown.
## Using sg_mail with Formhandler
In your **setup.txt** of your formhandler extension, you have to invoke the **FormhandlerFinisherService** of sg_mail.
This is done in a similar fashion as with the usual finisher classes.
### Example ### Example
finishers { finishers {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment