定制 aaronhipple/grav-plugin-mailchimp 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

aaronhipple/grav-plugin-mailchimp

Composer 安装命令:

composer require aaronhipple/grav-plugin-mailchimp

包简介

Add MailChimp subscribe form action support

README 文档

README

The MailChimp Plugin is for Grav CMS. It creates a form action step permitting the signing up of members to a MailChimp email list.

NOTE: This plugin is unmaintained. Use at your own risk, forks welcome!

Description

Adds MailChimp subscribe form action support.

Installation

Downloads are available on the Releases page. Once downloaded and extracted, copy the mailchimp directory to your Grav installation's user/plugins directory.

Install from GPM

Installation is available through the GPM. Install it from your site's admin panel or from the terminal:

$ bin/gpm install mailchimp

Install with Composer

This plugin is available via Packagist.org.

# install without dev dependencies in a production-type environment.
composer require aaronhipple/grav-plugin-mailchimp --update-no-dev

# install with dev dependencies in a development- or CI-type environment.
composer require aaronhipple/grav-plugin-mailchimp

Usage

Configure the plugin with your MailChimp API key, either in user/config/plugins/mailchimp.yaml or using the admin plugin.

Set up the form like so in your form's frontmatter

form:
    name: subscribe
    fields:
        -
            name: email
            label: Email
            placeholder: 'Enter your email address'
            type: email
            validate:
                required: true
        - 
            name: my_custom_field
            label: My Custom Field
            placeholder: 'A Custom Field'
            type: text
        -
            name: news_letter
            type: checkbox
            label: 'Yes I would like to receive updated news and information'
    buttons:
        -
            type: submit
            value: Submit
        -
            type: reset
            value: Reset
    process:
        - mailchimp:
            required_fields: [news_letter]
            lists: [1234567, abcdefg]
            field_mappings:
                mailchimpMergeField: my_custom_field

统计信息

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

GitHub 信息

  • Stars: 11
  • Watchers: 2
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-06-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固