Fel*_*lix 2 typo3 powermail typo3-7.6.x
我有自己的 TYPO3 插件来显示记录。现在我想为每条记录添加第二页的链接。
第二页应该是 powermail 表单。现在我希望第二封邮件的链接包含一个参数,该参数应预填充 powermail 表单中的输入字段。
那可能吗?如果是的话怎么办?
对的,这是可能的。请参阅 powermail 文档:https://docs.typo3.org/typo3cms/extensions/powermail/ForAdministrators/BestPractice/PrefillField/Index.html
标准方式
字段的预填充(输入、文本区域、隐藏)或预选择(选择、检查、单选)将由 PrefillFieldViewHelper 完成。它监听以下方法和参数(按此顺序):
使用 TypoScript cObject 填充,例如
plugin.tx_powermail.settings.setup.prefill {
# Fill field with marker {email}
email = TEXT
email.value = mail@domain.org
}
Run Code Online (Sandbox Code Playgroud)使用简单的 TypoScript 填充,例如
plugin.tx_powermail.settings.setup.prefill {
# Fill field with marker {email}
email = mail@domain.org
}
Run Code Online (Sandbox Code Playgroud)用信号填充您自己的 PHP。看看 In2codePowermailViewHelpersMiscPrefillFieldViewHelper::render()
| 归档时间: |
|
| 查看次数: |
2554 次 |
| 最近记录: |