简体   繁体   English

Typo3 表格修整器

[英]Typo3 Form Finisher

Hello I have make a form finisher, but I have some Problem.你好,我做了一个表格整理器,但我有一些问题。 in BE I can select in, but no fields are loaded.在 BE 我可以选择,但没有加载任何字段。

Here the code from the BaseSetup.yaml这里是来自 BaseSetup.yaml 的代码

 TYPO3: CMS: Form: prototypes: standard: formElementsDefinition: Form: renderingOptions: translation: translationFile: '10': 'EXT:form\/Resources\/Private\/Language\/locallang.xlf' '20': 'EXT:formfinisher\/Resources\/Private\/Language\/locallang.xlf' finishersDefinition: EmailPdf: implementationClassName: 'IL\\Formfinish\\Domain\\Finishers\\EmailPdfFinisher'<\/code><\/pre>

And this is the Code FormEditorSetup.yaml这是代码 FormEditorSetup.yaml

 TYPO3: CMS: Form: ########### FORM MANAGER CONFIGURATION ########### formManager: translationFile: 10: 'EXT:form\/Resources\/Private\/Language\/Database.xlf' 20: 'EXT:formfinisher\/Resources\/Private\/Language\/Database.xlf' ########### FORMEDITOR CONFIGURATION ########### prototypes: standard: formEditor: translationFile: 10: 'EXT:form\/Resources\/Private\/Language\/Database.xlf' 20: 'EXT:formfinisher\/Resources\/Private\/Language\/Database.xlf' ########### DEFAULT FORM ELEMENT DEFINITIONS ########### formElementsDefinition: Form: formEditor: editors: 900: selectOptions: 1491637029: value: 'EmailPdf' label: 'Email with Pdf' propertyCollections: finishers: 50: identifier: 'EmailPdf' editors: __inheritances: 10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseCollectionEditorsMixin' 100: label: 'Email with Pdf' 200: identifier: 'subject' templateName: 'Inspector-TextEditor' label: 'formEditor.elements.Form.finisher.EmailToSender.editor.subject.label' propertyPath: 'options.subject' enableFormelementSelectionButton: true propertyValidators: 10: 'NotEmpty' 20: 'FormElementIdentifierWithinCurlyBracesInclusive' 300: identifier: 'pdfOrt' templateName: 'Inspector-TextEditor' label: 'Pdf Ort' propertyPath: 'options.subject' enableFormelementSelectionButton: true propertyValidators: 10: 'NotEmpty' 20: 'FormElementIdentifierWithinCurlyBracesInclusive' 400: identifier: 'pdfAddress' templateName: 'Inspector-TextEditor' label: 'Pdf Address' propertyPath: 'options.subject' enableFormelementSelectionButton: true propertyValidators: 10: 'NotEmpty' 20: 'FormElementIdentifierWithinCurlyBracesInclusive' 500: identifier: 'recipientAddress' templateName: 'Inspector-TextEditor' label: 'formEditor.elements.Form.finisher.EmailToSender.editor.recipientAddress.label' propertyPath: 'options.recipientAddress' enableFormelementSelectionButton: true propertyValidatorsMode: 'OR' propertyValidators: 10: 'NaiveEmail' 20: 'FormElementIdentifierWithinCurlyBracesExclusive' fieldExplanationText: 'formEditor.elements.Form.finisher.EmailToSender.editor.recipientAddress.fieldExplanationText' 600: identifier: 'recipientName' templateName: 'Inspector-TextEditor' label: 'formEditor.elements.Form.finisher.EmailToSender.editor.recipientName.label' propertyPath: 'options.recipientName' enableFormelementSelectionButton: true propertyValidators: 10: 'FormElementIdentifierWithinCurlyBracesInclusive' fieldExplanationText: 'formEditor.elements.Form.finisher.EmailToSender.editor.recipientName.fieldExplanationText' 700: identifier: 'senderAddress' templateName: 'Inspector-TextEditor' label: 'formEditor.elements.Form.finisher.EmailToSender.editor.senderAddress.label' propertyPath: 'options.senderAddress' enableFormelementSelectionButton: true propertyValidatorsMode: 'OR' propertyValidators: 10: 'NaiveEmail' 20: 'FormElementIdentifierWithinCurlyBracesExclusive' fieldExplanationText: 'formEditor.elements.Form.finisher.EmailToSender.editor.senderAddress.fieldExplanationText' 800: identifier: 'senderName' templateName: 'Inspector-TextEditor' label: 'formEditor.elements.Form.finisher.EmailToSender.editor.senderName.label' propertyPath: 'options.senderName' enableFormelementSelectionButton: true propertyValidators: 10: 'FormElementIdentifierWithinCurlyBracesInclusive' fieldExplanationText: 'formEditor.elements.Form.finisher.EmailToSender.editor.senderName.fieldExplanationText' 900: identifier: 'replyToAddress' templateName: 'Inspector-TextEditor' label: 'formEditor.elements.Form.finisher.EmailToSender.editor.replyToAddress.label' propertyPath: 'options.replyToAddress' enableFormelementSelectionButton: true propertyValidatorsMode: 'OR' propertyValidators: 10: 'NaiveEmailOrEmpty' 20: 'FormElementIdentifierWithinCurlyBracesExclusive' 1000: identifier: 'carbonCopyAddress' templateName: 'Inspector-TextEditor' label: 'formEditor.elements.Form.finisher.EmailToSender.editor.carbonCopyAddress.label' propertyPath: 'options.carbonCopyAddress' enableFormelementSelectionButton: true propertyValidatorsMode: 'OR' propertyValidators: 10: 'NaiveEmailOrEmpty' 20: 'FormElementIdentifierWithinCurlyBracesExclusive' 1100: identifier: 'blindCarbonCopyAddress' templateName: 'Inspector-TextEditor' label: 'formEditor.elements.Form.finisher.EmailToSender.editor.blindCarbonCopyAddress.label' propertyPath: 'options.blindCarbonCopyAddress' enableFormelementSelectionButton: true propertyValidatorsMode: 'OR' propertyValidators: 10: 'NaiveEmailOrEmpty' 20: 'FormElementIdentifierWithinCurlyBracesExclusive' 1200: identifier: 'format' templateName: 'Inspector-SingleSelectEditor' label: 'formEditor.elements.Form.finisher.EmailToSender.editor.format.label' propertyPath: 'options.format' selectOptions: 10: value: 'plaintext' label: 'formEditor.elements.Form.finisher.EmailToSender.editor.format.1' 20: value: 'html' label: 'formEditor.elements.Form.finisher.EmailToSender.editor.format.2' 1300: identifier: 'attachUploads' templateName: 'Inspector-CheckboxEditor' label: 'formEditor.elements.Form.finisher.EmailToSender.editor.attachUploads.label' propertyPath: 'options.attachUploads' finishersDefinition: EmailPdfFinisher: formEditor: iconIdentifier: 't3-form-icon-finisher' label: 'A Label that seems to be never used...' predefinedDefaults: options: subject: '' pdfOrt: '' pdfAddress: '' recipientAddress: '' recipientName: '' senderAddress: '' senderName: '' replyToAddress: '' carbonCopyAddress: '' blindCarbonCopyAddress: '' format: 'html' attachUploads: true<\/code><\/pre>

And the FormEnginSetup looks like this FormEnginSetup 看起来像这样

 TYPO3: CMS: Form: prototypes: standard: formEngine: translationFile: 10: 'EXT:form\/Resources\/Private\/Language\/Database.xlf' 20: 'EXT:formfinisher\/Resources\/Private\/Language\/Database.xlf' ### FINISHERS ### finishersDefinition: # Flexform EmailPdf: FormEngine: label: 'Pdf dings' elements: subject: label: 'tt_content.finishersDefinition.EmailToSender.subject.label' config: type: 'input' eval: 'required' recipientAddress: label: 'tt_content.finishersDefinition.EmailToSender.recipientAddress.label' config: type: 'input' eval: 'required' recipientName: label: 'tt_content.finishersDefinition.EmailToSender.recipientName.label' config: type: 'input' senderAddress: label: 'tt_content.finishersDefinition.EmailToSender.senderAddress.label' config: type: 'input' eval: 'required' senderName: label: 'tt_content.finishersDefinition.EmailToSender.senderName.label' config: type: 'input' pdfOrt: label: 'Pdf Ort' config: type: 'input' eval: 'required' pdfAddress: label: 'Pdf Address' config: type: 'input' eval: 'required' replyToAddress: label: 'tt_content.finishersDefinition.EmailToSender.replyToAddress.label' config: type: 'input' carbonCopyAddress: label: 'tt_content.finishersDefinition.EmailToSender.carbonCopyAddress.label' config: type: 'input' blindCarbonCopyAddress: label: 'tt_content.finishersDefinition.EmailToSender.blindCarbonCopyAddress.label' config: type: 'input' format: label: 'tt_content.finishersDefinition.EmailToSender.format.label' config: type: select renderType: 'selectSingle' minitems: 1 maxitems: 1 size: 1 items: 10: 0: 'tt_content.finishersDefinition.EmailToSender.format.1' 1: 'html' 20: 0: 'tt_content.finishersDefinition.EmailToSender.format.2' 1: 'plaintext'<\/code><\/pre>

and in the frontend I get the following error message在前端我收到以下错误消息

The finisher preset identified by "EmailPdf" could not be found, or the implementationClassName was not specified.找不到由“EmailPdf”标识的装订器预设,或者未指定 implementationClassName。

"

I had a similar Problem.我有一个类似的问题。 BE just worked fine, but de FE ended up in errors as i added the finisher. BE 工作正常,但 de FE 最终在我添加完成器时出错。

In my case the FE typoscript didn't get loaded the correct way.在我的情况下,FE 打字稿没有以正确的方式加载。 You can check that in the template -> typoscript object browser.您可以在模板 -> 打字稿对象浏览器中检查。

I had the same error.我有同样的错误。 Benjamin Quandts answer took me to the solution. Benjamin Quandts 的回答让我找到了解决方案。

Take a look at other installed extensions.看看其他已安装的扩展。

        Form:
          formEditor:
            editors:
              900:
                selectOptions:
                  1491637029:
                    value: 'EmailPdf'
                    label: 'Email with Pdf'
                    
            propertyCollections:
              finishers:
                50:
                  identifier: 'EmailPdf'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM