No description
- PHP 91.5%
- Scheme 8.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
- Introduced `doi_template_id` configuration for setting default DOI template ID. - Updated logic to handle lists as arrays, ensuring proper format in form submissions. - Removed redundant import for `Debug` to clean up the controller. - Improved extensibility with hooks and refined form handling for better maintainability. - Updated README to document extensibility hooks and CMS configuration enhancements. |
||
| _config | ||
| lang | ||
| src | ||
| templates | ||
| _config.php | ||
| composer.json | ||
| README.md | ||
Brevo Newsletter Registration for SilverStripe
Adds a page type with a Newsletter Registration Form that integrates with Brevo (formerly Sendinblue).
Features
- Custom Newsletter Registration Page.
- Selectable Brevo lists for subscription.
- Support for Double Opt-In (DOI) via Brevo.
- Configurable redirect pages for success and DOI hints.
- Fully localized (English and German).
- Extensible via SilverStripe Extension system.
Requirements
- SilverStripe CMS ^5
getbrevo/brevo-php^2.0
Installation
composer require moritz-sauer-13/brevo-newsletter-registration
After installation, run a dev/build?flush=all.
Configuration
The registration page can be configured via the CMS (Brevo and Links tabs). Here you can set the API Key, select Brevo lists, and define the DOI Template ID.
Usage
- Create a new page of type "Newsletter Anmeldung" in the CMS.
- Enter your Brevo API Key in the "Brevo" tab.
- Select one or more lists after the API key is validated.
- Configure redirect pages in the "Links" tab.
Extensibility
Available hooks for BrevoNewsletterRegistrationPageController:
updateNewsletterRegistrationFields($fields)updateNewsletterRegistrationRequiredFields($requiredFields)updateNewsletterRegistrationData($data)updateNewsletterRegistrationContactAttributes($contactAttributes, $data)updateCreateDoiContact($createContact, $data)onAfterNewsletterRegistration($data, $form)
License
MIT