我试图覆盖表单扩展中的模板,但它在最新的 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/'
请任何人帮助我。
谢谢!