2017-08-24 5 views
0

フォーム拡張でテンプレートをオーバーライドしようとしましたが、最新のTYPO3バージョン8.7.0では機能しません。TYPO3 8.7はフォームテンプレートファイルをオーバーライドできません

私は以下のようにしようとしたが、それが機能していません。

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

はい右に誤りがあると思います!私の小さな間違い。ありがとう –

関連する問題