lelesys / plugin-newsletter
TYPO3 Neos 的新闻通讯插件。
2.3.1
2018-05-27 20:06 UTC
Requires
- typo3/neos: ~2.3.0
- typo3/swiftmailer: ~5.4.2
README
此插件将新闻通讯添加到您的网站。
警告:此插件为实验性。
快速开始
- 将插件 TypoScript 定义包含到您自己的定义中(例如,位于
Packages/Sites/Your.Site/Resources/Private/TypoScripts/Library/ContentElements.ts2
),使用以下代码:
include: resource://Lelesys.Plugin.Newsletter/Private/TypoScript/Root.ts2
- 在您的包设置中添加以下代码,配置新闻通讯插件发送者电子邮件
Lelesys:
Plugin:
Newsletter:
email:
admin: 'no-reply@yourdomain'
subject: 'Confirm Subscription'
# You can add your email address as per requirement
replyTo: ''
senderEmail: 'no-reply@yourdomain'
senderName: 'Your Organization name'
# These are optional. You can add your email addresses as per requirement
ccAddresses: ''
bccAddresses: ''
baseUrl : 'Base url of your site(e.g. http://demosite.local.com')
flashMessage:
packageKey: 'Lelesys.Plugin.Newsletter'
- 通过运行 doctrine migrate 命令创建所需的数据库表
./flow doctrine:migrate
使用方法
-
将插件内容元素 "Newsletter Subscription Form" 添加到您选择的定位。
-
这将在前端显示表单
-
在站点节点(您的网站的第一页)添加插件内容元素 "Newsletter Subscription Confirmation",以确认订阅并查看新闻通讯的确认消息。
-
将插件内容元素 "Lelesys Newsletter Node" 添加到您选择的定位。
-
这将在内容元素中显示带有加号图标,以创建新的新闻通讯节点。新节点将在页面下创建。在新闻通讯电子邮件中输入要发送的文本
-
所有 Lelesys.Plugin.Newsletter:NewsletterAdmin 角色均可以查看与新闻通讯相关的所有后端模块。
*注意: * 配置 cron 以运行新闻通讯插件的 './flow newsletter:sendout' 命令 - 命令 './flow newsletter:sendout' 将通过 cron 运行。它将向订阅者发送新闻通讯