in2code / email2powermail
将 TYPO3 前端中的电子邮件地址转换为指向 powermail 表单的链接。表单将通过此电子邮件发送。
2.0.0
2017-10-29 11:38 UTC
Requires
- in2code/powermail: >=4.0.0 <5.0.0
- typo3/cms-core: >=7.6.0 <9.0.0
Replaces
- email2powermail: 2.0.0
- typo3-ter/email2powermail: 2.0.0
README
简介
将 TYPO3 前端中的电子邮件地址转换为指向 powermail 表单的链接。表单将通过此电子邮件发送。这可以帮助您在前端隐藏电子邮件地址,防止蜘蛛抓取。
屏幕截图
安装
- 首先安装 powermail 4.0.0 或更高版本
- 安装此扩展
- 注意静态模板(powermail 和 email2powermail 包含在内) - 重要:powermail 必须在 email2powermail 之前包含!
- 将 powermail 表单添加到页面,并记住 PID(例如,123)
- 将此 PID 添加到常量:plugin.tx_email2powermail.settings.pid=123
- 将一些电子邮件记录添加到 sysfolder(所有这些电子邮件都将在前端进行编码)
- 祝您玩得开心!
依赖关系
- Powermail 4.0.0 或更高版本
- TYPO3 7.6 或更高版本
- PHP 5.5 或更高版本
更新日志
最佳实践
1) 在表单中添加标签字段
如果您想在表单中添加标签字段,可以添加一个新的类型为 TypoScript 的字段,并添加路径 lib.email2powermail.decode.introductionText。这样,如果 Powermail 从链接调用,则会首先显示该字段。
当然,您也可以在设置中使用此 TypoScript,如果您需要的话。
2) 使用标记来显示邮件发送去向
您可以在 Powermail 的 RTE 中使用标记,如 {email2powermail_name} 或 {email2powermail_email}
3) 使用其他表进行编码(例如 fe_users 或 be_users)
请参阅 TypoScript 文件 EXT:email2powermail/Configuration/TypoScript/setup.txt - 其中包含映射配置。默认情况下将使用 tx_email2powermail_domain_model_email,但您也可以使用另一个表 - 请参见以下示例。使用位于页面 1 或 237 的 fe_users,使用字段 email 作为电子邮件,使用字段 first_name 作为姓名。
config.tx_extbase {
persistence {
classes {
In2code\Email2powermail\Domain\Model\Email {
# Example how to use fe_users instead of tx_email2powermail_domain_model_email
mapping {
tableName = fe_users
columns {
uid.mapOnProperty = identifier
email.mapOnProperty = email
first_name.mapOnProperty = name
}
in {
pid = 1,237
}
}
}
}
}
}