passionweb/form-email-contentblocks
Composer 安装命令:
composer require passionweb/form-email-contentblocks
包简介
Allows adding different content elements at the beginning (introductory text) and/or at the end (email signature) of the email templates. Also, the background color and logo of the fluid email template can be edited.
README 文档
README
Allows to add a content element at the beginning (introductory text) and/or at the end (signature) of the email templates. Also, the background color and logo of the fluid email template can be edited.
Features
- Add a content element at the beginning of the email to receiver template
- Add a content element at the beginning of the email to sender template
- Add a content element at the end of the email to receiver template
- Add a content element at the end of the email to sender template
- Edit the background color and logo of the fluid email template for sender and receiver
Installation
Add via composer:
composer require "passionweb/form-email-contentblocks"
- Install the extension via composer
- Flush TYPO3 and PHP Cache
What does this extension do?
This extension provides additional finishers for the TYPO3 system extension "Form" (EXT:form). In order for this extension to work as desired, the extension must be installed and configured correctly.
Since version 1.1.0 it is possible to use form variables in the content elements.
Following finishers are available:
-
IntroductoryReceiverFinisher(Adds a content element at the beginning of the email to receiver template) -
IntroductorySenderFinisher(Adds a content element at the beginning of the email to sender template) -
SignatureReceiverFinisher(Adds a content element at the end of the email to receiver template) -
SignatureSenderFinisher(Adds a content element at the end of the email to sender template) -
ExtendFluidEmailFinisher(Edit the background color and logo of the fluid email template for sender and receiver. The logo accepts an extension path (EXT:...), a public URL, a FAL reference (t3://file?uid=…,file:…orstorage:uid) or a document-root-relative path. Background color, logo and copyright can also be pre-set site-wide via the site set, see Configuration.)
All previous finishers must be placed in front of the associated email finishers (EmailToSender or EmailToReceiver). Otherwise the corresponding content blocks are ignored. The same applies to the ExtendFluidEmailFinisher variables.
For each finisher, the corresponding notes are also displayed in the header of the respective finisher.
Configuration
Form configuration (automatic)
As of TYPO3 v14, the form YAML configuration is registered automatically through the
form framework's auto-discovery (Configuration/Form/FormEmailContentblocks/config.yaml),
for both the frontend and the backend form editor. No TypoScript setup is required.
The previous TypoScript registration via
plugin.tx_form/module.tx_form.settings.yamlConfigurationswas deprecated in TYPO3 v14.2 (#109412) and removed here in favour of auto-discovery.
Site-wide defaults (site set)
The extension ships a site set passionweb/form-email-contentblocks that exposes
site-wide fallback defaults for the ExtendFluidEmailFinisher:
| Setting | Type | Description |
|---|---|---|
formEmailContentblocks.bgColor |
string | Fallback background color (hex, e.g. #ffffff) |
formEmailContentblocks.logo |
string | Fallback logo (EXT: path, URL, FAL reference or root-relative path) |
formEmailContentblocks.showCopyright |
bool | Default for the copyright note |
Include the set in your site: Site Management → Sites → your site → Sets → add
"Form email content blocks" (or add passionweb/form-email-contentblocks to the
site's dependencies in config/sites/<identifier>/config.yaml). Per-form finisher
options always take precedence; the site settings only apply when a form leaves the
respective option empty. The site set is optional — the finishers work without it.
How editors can/should use the extension
- Create new or edit an existing form
- Add the finisher(s) you want to use (and place them in the right order)
- Save the form
Add form variables to content elements
Since version 1.1.0 it is possible to use form variables in the content elements or the text fields for the plaintext. You can use it in the same way as in the finisher configurations.
Troubleshooting and logging
If something does not work as expected take a look at the log file first.
Every problem is logged to the TYPO3 log (normally found in var/log/typo3_*.log).
If something still doesn't work as desired after checking the logs, feel free to contact me.
Important notes
This extension does not override any of the default EXT:form finisher classes, as it uses the FinisherVariableProvider object to share variables between finishers.
But the default email templates are overwritten. If you use several extensions that overwrite the default email templates of EXT:form, conflicts can arise.
Achieving more together or Feedback, Feedback, Feedback
I'm grateful for any feedback! Be it suggestions for improvement, extension requests or just a (constructive) feedback on how good or crappy the extension is.
Feel free to send me your feedback to service@passionweb.de or contact me on Slack
passionweb/form-email-contentblocks 适用场景与选型建议
passionweb/form-email-contentblocks 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 1.67k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2023 年 01 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 passionweb/form-email-contentblocks 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 passionweb/form-email-contentblocks 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.67k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2023-01-21




