承接 kuriousagency/email-subscriptions 相关项目开发

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

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

kuriousagency/email-subscriptions

最新稳定版本:3.0.0

Composer 安装命令:

composer require kuriousagency/email-subscriptions

包简介

Allows subscribing and unsubscribing from 3rd party email lists.

README 文档

README

Allows subscribing and unsubscribing from 3rd party email lists.

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

    cd /path/to/project
    
  2. Then tell Composer to load the plugin:

    composer require KuriousAgency/email-subscriptions
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Email Subscriptions.

Email Subscriptions Overview

This is a simple plugin that allows a user to manage their email list subscriptions on a 3rd party service like MailChimp for example.

They can subscribe and unsubscribe from any of the lists within your 3rd party service account.

Currently the only supported service is MailChimp.

Configuring Email Subscriptions

Within the plugin settings, choose a 3rd party service and enter the API key.

Example Form

<form method="post" accept-charset="UTF-8">

	{{ csrfInput() }}
	<input type="hidden" name="action" value="email-subscriptions/update">

	{% for list in craft.emailSubscriptions.lists %}
		<input type="checkbox" id="list_{{ list.id }}" name="lists[]" value="{{ list.id }}">
		<label for="list_{{ list.id }}">{{ list.name }}</label>
	{% endfor %}

	<button type="submit">Update</submit>

</form>

Variables

You can get the lists that an email is subscribed to via:

craft.emailSubscriptions.getListsByEmail('name@email.com')

if you do not pass in an email address then it will use the current user's email.

craft.emailSubscriptions.listsByEmail

Flash Messages

Two messages can set by the plugin:

{% set success = craft.session.getFlash('notice') %}

{% set error = craft.session.getFlash('error') %}

Email Subscriptions Roadmap

Some things to do, and ideas for potential features:

  • Support other 3rd party services.
  • update subscriptions on saveUser event.

Brought to you by Kurious Agency

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固