问题描述
我使用TYPO3表单扩展名并按如下方式集成表单:
我在TYPO3后端中创建了一个新页面,并在其中集成了联系表单。
在TypoScript中,我创建以下变量:
CONTACTFORM = CONTENT
CONTACTFORM {
table = tt_content
select {
pidInList = 23
includeRecordsWithoutDefaultTranslation = 1
}
}
在流体模板中,我将它们称为:
<div class="col-lg-8">
<div class="row">
<f:format.htmlentitiesDecode>{CONTACTFORM}</f:format.htmlentitiesDecode>
</div>
</div>
我发送表格时出现此错误:
(1/1) #1581862822 TYPO3\CMS\Core\Error\Http\BadRequestException
The HMAC of the form Could not be validated.
看起来像隐藏表单字段tx_form_formframework [__ trustedProperties]也被解析了,我该如何防止呢?
解决方法
这是我的解决方案:
lib.fluidcontact = CONTENT
lib.fluidcontact {
table = tt_content
select {
pidInList = 23
includeRecordsWithoutDefaultTranslation = 1
}
}
并在流体模板中:
<f:cObject typoscriptObjectPath="lib.fluidcontact" />