定制 doublesecretagency/craft-notifier 二次开发

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

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

doublesecretagency/craft-notifier

Composer 安装命令:

composer require doublesecretagency/craft-notifier

包简介

First-class Notifications for Craft CMS.

README 文档

README

Plugin icon

Notifier plugin for Craft CMS

First-class Notifications for Craft 4 and Craft 5.

Event Types   •   Message Types   •   Recipient Types

It can best be explained with the following formula:

When an [EVENT] occurs, send a [MESSAGE] to designated [RECIPIENTS].

There are endless reasons why you may need a combination of these event/message/recipient types, for example...

  • Email a welcome message when a User registers
  • Text the warehouse when an order is paid
  • Send a Slack message when an RSS feed updates
  • Post to Bluesky when a new entry goes live

... and so much more. For more details, see the complete documentation.

How It Works

Event Types

Trigger notifications from a variety of events, including Entries, Assets, Users, Craft Commerce, Digital Products, Solspace Calendar, or even watching RSS/JSON feeds.

Screenshot of event type options

Message Types

Regardless of the trigger, you can send a message via email, SMS, Slack, ntfy, Pushover, Bluesky, a control-panel Announcement, or Flash message.

Screenshot of message type options

Recipient Types

Messages can be sent to many recipients, including Dynamic Recipients for cases where the recipient is determined at runtime.

Screenshot of recipient type options

Write Messages in Twig

All messages can be composed using normal Twig, including a set of special variables available at runtime. Each message renders through a configurable Twig sandbox.

Personalize the message

Hi {{ recipient.firstName }}, the entry "{{ entry.title }}" was just updated.

Show what changed

The title changed from "{{ original.title }}" to "{{ entry.title }}".

Dynamic Recipients

When you need to determine the recipient at runtime, use Dynamic Recipients and pass the target into the {% setRecipients %} tag:

{% setRecipients entry.author %}

Field-Level Conditions

Detect changes to specified fields, and only send a notification when those fields have changed (or match a specific value).

Screenshot of the condition builder with the has-changed operator

Notification Log

Every outgoing message is logged, giving you a detailed view of how each message was handled. Restrict log growth with the logRetentionDays and logRetentionRecords settings.

Screenshot of Notification Log

How to Install the Plugin

To get started, see the complete installation instructions ➡️

Further Reading

If you haven't already, flip through the complete plugin documentation.

And if you have any remaining questions, feel free to reach out to us (via Discord is preferred).

On behalf of Double Secret Agency, thanks for checking out our plugin! 🍺

Logo for Double Secret Agency

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2021-08-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固