ext:form FormEditor Viewmodel

时间:2019-04-11 19:51:13

标签: typo3 yaml

尝试为ext:form实现自定义表单元素,我在yaml中为后端注册了ViewModel:

              formEditor:
                dynamicRequireJsModules:
                  additionalViewModelModules:
                    - 'TYPO3/CMS/MyExt/Backend/FormEditor/CheckboxtextareaViewmodel'

当我在后端打开表单时,控制台显示此错误:

Error: Script error for "TYPO3/CMS/MyExt/Backend/FormEditor/CheckboxtextareaViewmodel"

它尝试解析此文件:

https://....de/typo3/TYPO3/CMS/MyExt/Backend/FormEditor/CheckboxtextareaViewmodel.js

我使用了以下示例:http://labor.99grad.de/typo3-tx_form-eigenes-formularelement-erstellen-custom-form-element/

我该如何解决?

1 个答案:

答案 0 :(得分:0)

解决了它:Javascript-> JavaScript