Skip to content

undkonsorten/powermail_subscription

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Powermail Subscription Finisher

Extend powermail forms with a checkbox for a newsletter subscription.

Usage

  • Install the extension
  • Add following code to your site packages Services.yaml to register the connector.
services:
  Undkonsorten\PowermailSubscription\Connector\ConnectorInterface:
    class: 'Undkonsorten\PowermailSubscription\Connector\RegisteraddressConnector'
  • Add TypoScript to register the finisher in powermail and configure the needed properties and fieldnames.
plugin.tx_powermail.settings.setup {
  finishers {
    25 {
      class = Undkonsorten\PowermailSubscription\Finisher\SubscriptionFinisher

      config {
        additionalProperties {
          # AddressProperty = fieldname
          firstName = firstname
          lastName = lastname
        }
        subscriptionField = newsletter_subscription
        consentField = newsletter_consenttext
        # save address in pid
        pid = 138
      }
    }
  }
}
  • Clear the cache

Using another registration extension

If you need another connector, implement the Undkonsorten\PowermailSubscription\Connector\ConnectorInterface in your own Connector Class and define what you need in the subscribe method.

About

Powermail finisher to use powermail forms with a checkbox for a newsletter subscription.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages