Download the PHP package rkw/rkw-registration without Composer
On this page you can find all versions of the php package rkw/rkw-registration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rkw/rkw-registration
More information about rkw/rkw-registration
Files in rkw/rkw-registration
Package rkw-registration
Short Description Extension for registration of FE-Users and FE-Usergroups
License GPL-2.0+
Homepage https://www.rkw-kompetenzzentrum.de
Informations about the package rkw-registration
Usage in your own extension
Opt-In
1. Generate Opt-In in your controller
For a registration with opt-in simple use the example-code below in your controller. Please ensure to always load FrontendUserRegistration via ObjectManager
If you want to be able to update the data of the frontendUser after the successful opt-in you can use the method setFrontendUserUpdate. This will update the frontendUser-object as soon as the user accepts the opt-in. This way you can be sure that changes to the frontendUser-object only happen if authorized.
2. Define MailService for Opt-In-Mail
No you need a MailService class with a defined action for Opt-Ins
3. Set Signal-Slot
Now we need a signal-slot that refers to the defined method for sending mails (ext_localconf.php)
4. Set Template for Opt-In-Mail
The opt-in-email may look like this:
5. Check Opt-In
To check the opt-in you can use the following example-code in your contoller:
6. Signal-Slot for extension specific action after opt-in
We need a second signal-slot in order to do whatever we need to do after the opt-in
7. Method for for the specific action
Then we need to define the corresponding method:
Another use-cases
- You can also: Send a confirmation-email after the opt-in was successful (Using SIGNAL_AFTER_ALERT_CREATED-Signal-Slot) Delete all extension-specific data if the frontendUser is deleted (Using SIGNAL_AFTER_REGISTRATION_ENDED-Signal-Slot) ** ... do many other fancy stuff ;-)
Consent (Privacy, Terms, Marketing)
The extension has a ViewHelper and validators to obtain consent to privacy, terms of use and advanced marketing. In order to obtain the consents, only the corresponding ViewHelper must be used in the own extension. As soon as an opt-in is carried out, the corresponding consents are automatically documented and stored in the database. The consents granted are recorded accordingly with the associated data (IP address, browser, etc.). In addition, the consent to the terms of use and to marketing is stored in the FrontendUser, as these consents are usually page-wide and independent of the respective context of the consent.
1. In Fluid
The following code can be used to obtain the appropriate consent. It is important that the ViewHelper is used within a form and that the FormErrors are also returned via Fluid.
2. In the controller
Only the corresponding validators are included here. They always refer to the form object.
An opt-in procedure is usually not carried out for logged-in frontend users. If you still want to record the time of consent for a registration, you can achieve this with the following code:
Upgrade to v9.5
Update Database
All versions of rkw-registration with dependencies
ext-openssl Version *
typo3/cms-core Version ~9.5.0
sjbr/sr-freecap Version ~2.5.0
madj2k/t3-accelerator Version ~9.5.2
madj2k/t3-ajax-api Version ~9.5.0
madj2k/t3-core-extended Version ~9.5.4
rkw/rkw-mailer Version ~9.5.0