Introduction
The module transfers the data of newsletter subscribers from Typo3 to Maileon. Since version 2.5.0, no contact data is stored in Typo3, which makes it easier to set up, as the flow of information from Maileon to Typo3 (DOI confirmers and unsubscribers) is no longer required.
All parameters of the transmission can be set via variables in Typo3.
Installation
Install with Composer
The extension can also be installed with Composer as a local package.
The extension package should be placed in a dedicated, local directory: documentroot/packages
.
Once this directory exists, update the installations composer.json
and add this directory as a new repository:
{ "repositories": [ { "type": "path", "url": "packages/*" }, ], }
Then run composer require
to the install the local extension typo3-maileon-integration
with vendor xqueue
:
composer req xqueue/typo3-maileon-integration:@dev
By executing this command, Composer locates xqueue/typo3-maileon-integration
and then symlinks it to typo3conf/ext/typo3-maileon-integration
Install with Zip package
Get the Zip package:
https://extensions.typo3.org/extension/typo3_maileon_integration
Open the TYPO3 backend.
Go to the Extension Manager under `Admin Tools` -> `Extensions`.
Upload the package.
Inserting a template (TypoScript)
To insert a static template for the plugin, first select "Template" in the menu on the left. Then select the page root element in the page administration. Make sure that "Info/Edit" is selected at the top, as shown in the screenshot. Then the plugin can be added to the template via "Edit the whole template record".
In the next step, the value "Configuration for Typo 3 - Maileon integration (typo3_maileon_integration)" is added to the list of selected objects under the item "Includes". Then click to Save.
Plugin configuration
After logging into the backend, the configuration can be found in the constants of the template.
The easiest way to adjust the configuration is via the TypoScript Object Browser:
The following settings can be made here:
apiKey: Maileon API key (required).
doiMailingKey: The DOI mailing key, should not the default mailing set in Maileon be sent to obtain the permission. This value can be overwritten at form level.
debug: Flag to display debug output. Possible values: 0, 1
targetPermission: Target permission after clicking on the DOI link. Analogous to the Maileon API, 4 (DOI) or 5 (DOI+ = DOI including permission for single user tracking) can be specified.
Insert newsletter subscribe form
The registration plugin must now be displayed on the page where the registration form is to be displayed. To do this, click on the button for adding new content elements.
In the dialogue that now opens, the type "General Plugin" must be selected under "Plugins".
The content block can then be edited and under "Plugin" it can be selected whether it is a login or logout form. After selecting the type, you can also specify which pages are to be forwarded to in the event of a success or error.
The subscribe form
The subscription form can be adapted in the html form file:
typo3_maileon_integration/Resources/Private/Templates/Subscribe/Subscribe.html
Forms with different DOI mailings
Since version 2.1.0 it is possible to set the DOI key on a page, which is used when registering a contact. This makes it possible to link different forms with different DOI mailings. A DOI key is set as a TypoScript constant set:
plugin.tx_typo3maileonintegration.settings.doiMailingKey = ...
This is possible on any page within the TYPO3 page tree and is inherited by all sub-pages, provided it is not overwritten there.