Code Monkey home page Code Monkey logo

dmailsubscribe's Introduction

TYPO3 Extension Dmailsubscribe

This extension provides a frontend plugin containing a registration form for direct_mail newsletters and handles confirmation and unsubscription requests.

Features

  • based on extbase/fluid
  • supports additional fields gender, name, first_name, last_name and company
  • supports categories
  • includes viewhelpers for confirm and unsubscribe links
  • additional and required fields configurable via TS or flexform

Example configuration

plugin.tx_dmailsubscribe {
  view {
    # Overrides the template paths
    layoutRootPaths.100 = EXT:myext/Resources/Private/Layouts/Plugins/Dmailsubscribe/
    templateRootPaths.100 = EXT:myext/Resources/Private/Templates/Plugins/Dmailsubscribe/
    partialRootPaths.100 = EXT:myext/Resources/Private/Partials/Plugins/Dmailsubscribe/
  }
  settings {
    additionalFields = gender, name, first_name, last_name, company, receiveHtml, categories
    requiredFields = gender, name
    muteConfirmationErrors = 1
    muteUnsubscribeErrors = 1
    lookupPids = 1,2,3
    categoryPids = 1,2,3
    pluginPageUid = 1
    fromEmail = [email protected]
    fromName = Newsletter
    subject = Your subscribtion to our newsletter
  }
}
  • additionalFields: additional fields to render in the form apart from 'email' which is always rendered
  • requiredFields: fields to make, well, required
  • muteConfirmationErrors: if set to TRUE errors for invalid confirmation requests are hidden
  • muteUnsubscribeErrors: if set to TRUE errors for invalid unsubscribe requests are hidden
  • lookupPids: PIDs to look up existing subscriptions to avoid duplicates
  • categoryPids: PIDs containing direct_mail categories
  • pluginPageUid: UID of the page including the plugin
  • fromEmail: Email of sender used in confirmation emails
  • fromName: Name of sender used in confirmation emails
  • subject: Subject of subscription confirmation email

Customizing templates ---

You can use your own fluid templates with this extension via the standard template overloading mechanism (see above).

E-Mail Templates are resolved to templateRootPaths.{$index}/Email/NewSubscription.html and templateRootPaths.{$index}/Email/NewSubscription.txt.

ToDo

  • currently only tt_address is supported
  • flexible CAPTCHA support

CodeStyle - Fixer

$ composer global require fabpot/php-cs-fixer
$ php-cs-fixer fix --config-file Build/.php_cs

dmailsubscribe's People

Contributors

bjo3rnf avatar cedricziel avatar filipbech avatar webian avatar fabtho avatar

Watchers

James Cloos avatar Roman Abt avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.