【问题标题】:TYPO3 8.7 can not override FORM Templates filesTYPO3 8.7 不能覆盖 FORM 模板文件
【发布时间】:2017-08-24 05:15:44
【问题描述】:

我试图覆盖表单扩展中的模板,但它在最新的 TYPO3 版本 8.7.0 中不起作用。

我尝试如下,但它不起作用。

plugin.tx_form {
 settings {
   yamlConfigurations {
     10 = fileadmin/form//BaseSetup.yaml
    }
 }
}

我的BaseSetup.yaml 文件如下所示。

    TYPO3:
      CMS:
        Form:
          persistenceManager:
            allowedFileMounts:
              10: 1:/user_upload/
            allowSaveToExtensionPaths: false
            allowDeleteFromExtensionPaths: false
            #allowedExtensionPaths:
              #10: EXT:example/Resources/Private/Forms/

          prototypes:
            standard:

              ########### DEFAULT FORM ELEMENT DEFINITIONS ###########
              formElementsDefinition:

                ### BASE ELEMENTS ###
                Form:
                  __inheritances:
                    10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseFormElementMixin'
                  rendererClassName: 'TYPO3\CMS\Form\Domain\Renderer\FluidFormRenderer'
                  renderingOptions:
                    __inheritances:
                      10: 'TYPO3.CMS.Form.mixins.translationSettingsMixin'
                    templateRootPaths:
                      10: 'fileadmin/form/Resources/Private/Frontend/Templates/'
                    partialRootPaths:
                      10: 'fileadmin/form/Resources/Private/Frontend/Partials/'
                    layoutRootPaths:
                      10: 'fileadmin/form/Resources/Private/Frontend/Layouts/'

请任何人帮助我。

谢谢!

【问题讨论】:

  • 我认为你给定的文件路径有错误

标签: forms typo3-8.x


【解决方案1】:

据我所知,一切都很好。 我认为您的文件路径有错误:

10 = fileadmin/form//BaseSetup.yaml

改为:

10 = fileadmin/form/BaseSetup.yaml

【讨论】:

  • 是的,没错!只是我的小错误。谢谢
猜你喜欢
  • 2023-03-10
  • 1970-01-01
  • 2016-10-17
  • 2018-08-18
  • 1970-01-01
  • 1970-01-01
  • 2013-02-08
  • 2012-07-06
  • 1970-01-01
相关资源
最近更新 更多