2017-08-24 34 views
0

我試圖覆蓋表單擴展模板,但它不適用於最新的TYPO3 8.7.0版。TYPO3 8.7無法覆蓋FORM模板文件

我嘗試像下面這樣,但它不是工作。

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/' 

任何人都幫我請。

謝謝!

+0

我認爲這是錯誤在你給出的文件路徑 –

回答

1

一切都很好,據我所知。 我認爲這是錯誤在你的文件路徑:

10 = fileadmin/form//BaseSetup.yaml 

更改爲:

10 = fileadmin/form/BaseSetup.yaml 
+0

是正確!只是我的小錯誤。謝謝 –