我有自己的TYPO3插件,可以显示记录。现在我想为每条记录添加第二页的链接。
第二页应该是一个电子邮件表格。现在我希望第二个Mail的链接包含一个参数,该参数应该预先填写powermail表单中的输入字段。
这可能吗?如果是这样的话?
答案 0 :(得分:2)
是的,这是可能的。请参阅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
}
填写简单的TypoScript,如
plugin.tx_powermail.settings.setup.prefill {
# Fill field with marker {email}
email = mail@domain.org
}
使用信号填写您自己的PHP。看看In2codePowermailViewHelpersMiscPrefillFieldViewHelper :: render()