承接 briceburg/silverstripe-mailchimp-flexiform 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

briceburg/silverstripe-mailchimp-flexiform

最新稳定版本:0.1.0

Composer 安装命令:

composer require briceburg/silverstripe-mailchimp-flexiform

包简介

Nicely integrate MailChimp lists with SilverStripe FlexiForms. Includes support for Interest Groups & more.

README 文档

README

Nicely integrate MailChimp lists with SilverStripe FlexiForms. Includes support for Interest Groups & more.

Requirements

SilverStripe FlexiForm https://github.com/briceburg/silverstripe-flexiform

ZfrMailChimp https://github.com/zf-fr/zfr-mailchimp

Tested in SilverStripe 3.1

Screenshots

flexiform fields

field editing

Installation

php composer.phar require briceburg/silverstripe-mailchimp-flexiform

Usage

This module integrates your SilverStripe flexiforms with MailChimp through the MailChimp v2 API.

You associate a form with a MailChimp List. When a valid submission is made, the submitter is subscribed to the associated list and optionally added to selected Interest Groups.

You have control over Welcome Emails, Double Opt-In, and Email Preferences.

Configuration is per-form, allowing you to override the default handler settings. E.g. You may use the same handler on forms which subscribe the user to different lists.

  • Install this module and trigger the environment builder (/dev/build).

  • Create a new Mailchimp Handler under the Manage Handlers area from any FlexiForm Settings tab.

  • Assign the Mailchimp Handler to any form you wish to integrate with MailChimp. Save. The MailChimp tab will appear where you may further configure the integration.

Automatic Form Creation

You may programatically create forms integrated with MailChimp using the convenicences of flexiform.

# mysite/_config/config.yml


# Make sure we have an Email Field named `Email`
FlexiFormEmailField:
  required_field_definitions: 
    - Name: Email
      Readonly: true
      

# Make sure we have a MailChimp Handler named `NewsletterHandler`
FlexiFormMailChimpHandler:
  required_handler_definitions:
    - Name: NewsletterHandler
      MailChimpListID: 0ffffff, 
      MailChimpApiKey: 0000000-us9,
      Readonly: true


# Automatically create a Content Block with a MailChimp enabled flexiform 
CommonContentNewsletterBlock:
  required_records:
    - Title: sidebar
      Heading: iCEBURG Labs Newsletter
      Content: iCEBURG Labs is proud to offer an email subscription service...
      Readonly: true
  flexiform_default_handler_name: NewsletterHandler
  flexiform_initial_fields:
    - Name: Email
      Type: FlexiFormEmailField
      Prompt: Email
      Required: true
class CommonContentNewsletterBlock extends CommonContentBlock
{

    private static $label = 'Newsletter Block';

    private static $extensions = array(
        'FlexiFormExtension'
    );
    
    ...
}

To learn more, read the flexiform configuration documentation.

This example uses the commoncontent addon.

统计信息

  • 总下载量: 17
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-12-25