Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
TYPO3-如何将字段名添加到Formhandler errorListTemplate.singleWrap打字脚本_Typo3_Typoscript_Html Formhandler - Fatal编程技术网

TYPO3-如何将字段名添加到Formhandler errorListTemplate.singleWrap打字脚本

TYPO3-如何将字段名添加到Formhandler errorListTemplate.singleWrap打字脚本,typo3,typoscript,html-formhandler,Typo3,Typoscript,Html Formhandler,如何将fieldname添加到Formhandler errorListTemplate.singleWrap打字脚本 我有以下打字稿: plugin.Tx_Formhandler.settings { singleErrorTemplate { totalWrap = | singleWrap = <span class="error">|</span> } errorListTemplate { totalWrap = <

如何将fieldname添加到Formhandler errorListTemplate.singleWrap打字脚本

我有以下打字稿:

plugin.Tx_Formhandler.settings {  
  singleErrorTemplate {
    totalWrap = |
    singleWrap = <span class="error">|</span>
  }
  errorListTemplate {
    totalWrap = <div id="liste_erreurs"><ul>|</ul></div>
    singleWrap = <li>|</li>
  }
}
plugin.Tx\u Formhandler.settings{
单一错误模板{
总包裹=|
单包裹=|
}
错误列表模板{
totalWrap=
    |
单件包装=
  • |
  • } }
    我想将当前字段名添加到errorListTemplate.singleWrap中,以获得如下结果:

    errorListTemplate {
      totalWrap = <div id="liste_erreurs"><ul>|</ul></div>
      singleWrap = <li for="[FIELDNAME]">|</li>
    }
    
    errorListTemplate{
    totalWrap=
      |
    singleWrap=
  • |
  • }

    谢谢,祝你今天愉快:)

    我终于通过jQuery完成了。。。虽然没有那么干净,但它起了作用