Open bh-teufels opened 2 years ago
if i copy your Default.html Template in own override Folder and rename it (eg.: Contact.html) and set templateName in Form Configuration (templateName: Contact)
it is working.
@bh-teufels, thanks for reaching out!
That's odd ;-/ The default templateName for the two finishers EmailToReceiver and EmailToSender is Default
, see https://github.com/TYPO3-CMS/form/blob/main/Configuration/Yaml/Finishers/EmailToReceiver.yaml#L10
Maybe you have had that changed to Contact
in your config somewhere else than the snippet from aboe? In that case you obviously need to provide a template with that name. Which you did ;-)
No i changed the templateName only when it didn't work . before i copied your Default.html Template File i also tried with templateName: Default in my configuration an not copy the Template File but that has not worked either.
@bh-teufels, what TYPO3 version you're on?
i am on the latest 11.5.9 PHP 7.4 form_mailtext 2.1.2
@bh-teufels, I've just had a go with those versions and it's all working smoothly.
How's your TypoScript setup looking like?
plugin.tx_form {
settings {
yamlConfigurations {
???
}
}
}
Maybe there's an index conflict with your custom configuration? This extension here is using index 100.
i using index 110
plugin.tx_form { settings { yamlConfigurations {
110 = EXT:my_ext/Configuration/Form/BasicContactFormSetup.yaml
}
}
}
@bh-teufels, what happens when you use 20 instead?
so using am index lower than 100 i don't know have to try it. but I won't be able to check it this week
I think I experienced the same/similar problem in TYPO3 10.4 (currently on TYPO3 10.4.27).
Problem: I was wondering why the E-Mail from the form was empty.
In BE form editor
When I add {variables}
into the new message field then it works but I think that shouldn't be necessary?
When I tried to delete the {variables}
value again I got the error that the form is not correctly configured.
Setup.yaml
TYPO3:
CMS:
Form:
persistenceManager:
allowedExtensionPaths:
10: EXT:my_extension/Resources/Private/__Form/
allowSaveToExtensionPaths: true
allowDeleteFromExtensionPaths: true
prototypes:
standard:
formElementsDefinition:
Form:
renderingOptions:
templateRootPaths:
150: 'EXT:my_extension/Resources/Private/__Form/Templates/'
partialRootPaths:
150: 'EXT:my_extension/Resources/Private/__Form/Partials/'
layoutRootPaths:
150: 'EXT:my_extension/Resources/Private/__Form/Layouts/'
finishersDefinition:
EmailToSender:
formEditor:
predefinedDefaults:
options:
message: "{variables}"
EmailToReceiver:
formEditor:
predefinedDefaults:
options:
message: "{variables}"
Hello
i get the default "all values" output not my output defined in "Mail Text". i debugged EMailFinisher.php and inside initializeStandaloneView & initializeFluidEmail the $message is the correct one.
seems that the EMail Template not using the one from your Extension i tried to override the Template in my own config but not working either.
Typo3: 11.5.9 form_mailtext: 2.1.2 PHP: 7.4.3