newsletter registration extension to tt_address made in Extbase + Fluid for Typo3. Similar to direct_mail_subscription except based on Extbase.
Use the update script in the Extension-Manager of registeraddress to add a generated hash to all already existing tt_address entries.
The update script is not shown when no entries with a missing hash are found.
if a newsletter registration form is needed on all pages, you need to have the following configuration in your TypoScript:
plugin.tx_registeraddress {
mvc.callDefaultActionIfActionCantBeResolved = 1
}
# then create an user object for the footer form
lib.footernewsletter = USER
lib.footernewsletter {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = Registeraddress
pluginName = RegisterformRedirect
vendorName = AFM
controller = Address
action = new
switchableControllerActions {
Address {
1 = new
}
}
view < plugin.tx_registeraddress.view
view {
layoutRootPaths {
100 = EXT:sitebootstrap/Resources/Private/Layouts/Registeraddress/
}
partialRootPath {
100 = EXT:sitebootstrap/Resources/Private/Partials/Registeraddress/
}
templateRootPaths {
100 = EXT:sitebootstrap/Resources/Private/Templates/Registeraddress/
}
}
persistence < plugin.tx_registeraddress.persistence
settings < plugin.tx_registeraddress.settings
settings {
mainformpageuid = 34
}
}
for setting your own translations:
plugin.tx_registeraddress {
_LOCAL_LANG.de {
form.new.title = NEWSLETTER
form.create.approvetext (
Vielen Dank für Ihren Anmeldung.<br />
Bitte bestätigen Sie die Newsletter-Anmeldung in der soeben an Sie versendeten E-Mail.
)
form.create.alreadyexists (
Vielen Dank.<br />
Sie sind bereits für unseren Newsletter angemeldet.
)
mail.info.subjectsuffix = NEWSLETTER
mail.registration.subjectsuffix = Newsletter-Registrierung
mail.unsubscribe.subjectsuffix = Abmeldung
mail.deletesuccess.subjectsuffix = Abmeldung abgeschlossen
mail.approvesuccess.subjectsuffix = Anmeldung erfolgreich
}
}
To add unsubscribe link to direct_mail:
add registeraddresshash to field basic.addRecipFields
of direct_mail in extension manager in settings of direct_mail
After that a link can be created with TypoScript:
typolink.parameter = 123
typolink.additionalParams = &tx_registeraddress_registerform[hash]=###USER_registeraddresshash###&tx_registeraddress_registerform[action]=delete&tx_registeraddress_registerform[controller]=Address
In version 1.0.13 you can add a consent message to the plugin. Additionally for logging when someone subscribed / unsubscribed you should use the Extension _registeraddresslogger
composer require undkonsorten/registeraddress-logger ^1.0
An example extension that connects registeraddress with fe_users can be found here https://github.com/lsascha/feusers_for_registeraddress