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
Forms 类型3格式多复选框部分_Forms_Typo3_Partials_Typo3 10.x - Fatal编程技术网

Forms 类型3格式多复选框部分

Forms 类型3格式多复选框部分,forms,typo3,partials,typo3-10.x,Forms,Typo3,Partials,Typo3 10.x,我试图编辑核心文件form\Resources\Private\Frontend\Partials\Field\Field.html,以更改前端中的html输出。如果我更改该文件,它将不会生效。如果更改核心文件格式\Resources\Private\Frontend\Partials\Textarea.html,将影响前端中的输出 我已尝试设置自定义的部分、布局和模板文件夹,如下所示: 我在页面模板的设置部分设置了以下内容: plugin.tx_form { settings { ya

我试图编辑核心文件form\Resources\Private\Frontend\Partials\Field\Field.html,以更改前端中的html输出。如果我更改该文件,它将不会生效。如果更改核心文件格式\Resources\Private\Frontend\Partials\Textarea.html,将影响前端中的输出

我已尝试设置自定义的部分、布局和模板文件夹,如下所示: 我在页面模板的设置部分设置了以下内容:

plugin.tx_form {
settings {
    yamlConfigurations {
        # register your own additional configuration
        # choose a number higher than 30 (below is reserved)
        100 = fileadmin/my_site_package/Configuration/Form/CustomFormSetup.yaml
    }
}
}
在fileadmin/my\u site\u package/Configuration/Form/CustomFormSetup.yaml中,我有

TYPO3:
CMS:
Form:
  prototypes:
    standard:
      formElementsDefinition:
        Form:
          renderingOptions:
            templateRootPaths:
              20:'fileadmin/my_site_package/Resources/Private/Templates/Form/Frontend/'
            partialRootPaths:
              20: 'fileadmin/my_site_package/Resources/Private/Partials/Form/Frontend/'

在文件夹fileadmin/my_site\u package/Resources/Private/Partials/Form/Frontend/I中,我从表单核心文件夹复制了Multicheckbox.html和其他部分文件。我已经编辑了Multicheckbox.html,但它对前端没有影响。

非常感谢您的输入。问题是因为引导程序包。文件夹“typo3conf/ext/bootstrap\u package/Resources/Private/Partials/Form”中有一个文件Multicheckbox.html。这一个覆盖了核心文件Multicheckbox.html

但我的脚步有什么不对?我现在在前端遇到以下错误:

哎呀,发生了一个错误! 尝试解析控制器操作“FormFrontend->form”在format.html中的模板文件,但没有路径包含预期的模板文件(FormFrontend/form.html)。没有配置任何路径。 有关此错误的更多信息,请联机获取

我是否在CustomFormSetup.yaml中设置了错误的路径? 我也试过了

TYPO3:
CMS:
Form:
  prototypes:
    standard:
      formElementsDefinition:
        Form:
          renderingOptions:
            templateRootPaths:
              1:'/my_site_package/Resources/Private/Templates/Form/Frontend/'
            partialRootPaths:
              1:'/my_site_package/Resources/Private/Partials/Form/Frontend/'

出现相同的错误。

请描述您已经采取的步骤以及您的配置。根据提供的信息,不可能给出任何建议。您没有编辑核心文件???对于覆盖模板,请查看文档:谢谢您!我已经编辑了我的问题。注意配置的级联<代码>*路径应具有多个有序条目。至少,应该有(索引最低的)到EXT:form路径的回退。2.不确定这是否是错误的,或者是你的帖子中的什么东西:小心你的YAML文件中的缩进。在这两个代码段中,“CMS:”和“Form:”(及其子项)的缩进都丢失了错误的缩进仅在此处,而不在文件中。