Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_mail
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_mail
Commits
ac95bc0e
Commit
ac95bc0e
authored
6 years ago
by
Torsten Oppermann
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Update readme, removing whitespace in code samples of deprecation warnings
parent
ab44931a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!11
Feature security update
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Classes/Controller/MailController.php
+1
-1
1 addition, 1 deletion
Classes/Controller/MailController.php
README.md
+6
-7
6 additions, 7 deletions
README.md
with
7 additions
and
8 deletions
Classes/Controller/MailController.php
+
1
−
1
View file @
ac95bc0e
...
...
@@ -381,7 +381,7 @@ class MailController extends ActionController {
}
// provide code example on how to register correctly
$code
=
'$GLOBALS[\'sgmail\'][\''
.
$extensionName
.
'\'][\'
'
$code
=
'$GLOBALS[\'sgmail\'][\''
.
$extensionName
.
'\'][\''
.
\str_replace
(
'.php'
,
''
,
$configFile
)
.
'\'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(\''
.
$extensionName
.
'\') . \'/Configuration/SgMail/'
.
$configFile
.
'\';'
;
...
...
This diff is collapsed.
Click to expand it.
README.md
+
6
−
7
View file @
ac95bc0e
...
...
@@ -23,8 +23,12 @@ sg_mail ist multi-site and multi-language ready.
### Registering your Extension
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.
The naming of the file should be in upper camel case, matching your template name.
It needs be a
*.php*
file and has to be inside the Configuration folder
**typo3conf/ext/{your_extension}/Configuration/Sgmail**
of your extension.
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.
...
...
@@ -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.
## 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
finishers {
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment