【问题标题】:Typo3 Neos: How to insert a form into a templateTypo3 Neos:如何将表单插入模板
【发布时间】:2014-10-27 15:13:20
【问题描述】:

是否可以将带有 TYPO3.Form 的表单构建插入到模板中?我在 .yaml 文件中定义了所有需要的字段,并希望直接在模板中呈现它,而不是通过后端插入。

【问题讨论】:

    标签: forms typo3 yaml


    【解决方案1】:

    我不太确定我是否理解正确,但在您的 Typoscript 配置中,您可以指定将在页面上呈现的节点类型。我需要在所有网站的页脚中呈现表单,这是我的工作配置:

    Root.ts2

    footerData {
            form = TYPO3.Neos.NodeTypes:Form {
                formIdentifier = "minimal-contact-form"
            }
    }
    

    Default.html

    ...
    
    {footerData.form -> f:format.raw()}
    
    ...
    

    minimal-contact-form.yaml

    type: 'TYPO3.Form:Form'
    identifier: minimal-contact-form
    label: 'Minimal Contact form'
    ...
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-06-23
      • 2014-03-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多