【发布时间】:2018-07-30 14:39:47
【问题描述】:
大家!
我正在使用扩展程序 form,我想创建自定义表单元素。
我需要从定义的字段列表中创建多行......像这样:
我已关注tutorial written by Manuel Selback 以创建自定义表单元素。我想我可以重用 FieldSet 元素。问题是我的新项目在后端表单编辑器中显示不好(未显示字段名称和类型)。
这是我的代码:
// EXT:my_ext/Configuration/Yaml/BaseSetup.yaml
TYPO3:
CMS:
Form:
prototypes:
standard:
formEditor:
formEditorPartials:
FormElement-FieldRow: 'Stage/SimpleTemplate'
formElementsDefinition:
Form:
renderingOptions:
templateRootPaths:
100: 'EXT:my_ext/Resources/Private/ext/form/Frontend/Templates/'
partialRootPaths:
100: 'EXT:my_ext/Resources/Private/ext/form/Frontend/Partials/'
layoutRootPaths:
100: 'EXT:my_ext/Resources/Private/ext/form/Frontend/Layouts/'
FieldRow:
__inheritances:
10: 'TYPO3.CMS.Form.prototypes.standard.formElementsDefinition.Fieldset'
// EXT:my_ext/Configuration/Yaml/FormEditorSetup.yaml
TYPO3:
CMS:
Form:
prototypes:
standard:
formEditor:
dynamicRequireJsModules:
additionalViewModelModules:
formEditorPartials:
FormElement-FieldRow: 'Stage/SimpleTemplate'
formElementsDefinition:
FieldRow:
formEditor:
label: 'formEditor.elements.FieldRow.label'
group: container
_isCompositeFormElement: true
groupSorting: 1000
iconIdentifier: 't3-form-icon-fieldrow'
editors:
200:
label: 'formEditor.elements.FieldRow.editor.label.label'
230: null
800: null
我错过了什么吗?
非常感谢。
【问题讨论】:
标签: forms typo3 typo3-8.x typo3-extensions