Sieht eigentlich ganz gut aus.Hast du überprüft ob überhaupt ein Wert in contact_to übergeben wird? Also ob der richtige Wert in den GET/POST-Parametern steht?
Hallo liebe Comm!
Ich bin mal wieder am verzweifeln, wahrscheinlich ist es nur ein Tippfehler den ich nicht sehe...
Ich versuche gerade ein Mailformplus-Kontaktformular mit einer Empfängerauswahl zu erstellen.
Soweit so gut. Das mitgelieferte Template habe ich mit diesem Code aufgefülltDas Formular wird auch so angezeigt, wie ich mir das vorgestellt habe.Code:<label for="kontakt">###LLL:kontakt### <select name="contact_to"> <option value="Empfaenger1" ###checked_contact_to_Empfaenger1###>Empfaenger1</option> <option value="Empfaenger2" ###checked_contact_to_Empfaenger2###>Empfaenger2</option> <option value="Empfaenger3" ###checked_contact_to_Empfaenger3###>Empfaenger3</option> <option value="Empfaenger4" ###checked_contact_to_Empfaenger4###>Empfaenger4</option> <option value="Empfaenger5" ###checked_contact_to_Empfaenger5###>Empfaenger5</option> <option value="Empfaenger6" ###checked_contact_to_Empfaenger6###>Empfaenger6</option> </select></label> <br> <br>
Im Typoscript steht folgendes:
Nun war ich mir nicht sicher, ob es im Typoscript vielleicht [globalVar = GPVar:contact_to=admin] heißen muss, aber auch wenn ich das ändere funktioniert nicht alles.Code:# path to language file plugin.tx_thmailformplus_pi1.langFile = fileadmin/user_upload/Systemdateien/singlepage/improved_demo_lang.php # path to stylesheet file plugin.tx_thmailformplus_pi1.stylesheetFile = fileadmin/user_upload/Systemdateien/singlepage/improved_demo_css.css # specify the symbol for required fields plugin.tx_thmailformplus_pi1.default.required_marker = * # receiver of the admin mail plugin.tx_thmailformplus_pi1.default.email_to = admin@msvb.de # subject of the admin mail is set to the subject the user entered in the form plugin.tx_thmailformplus_pi1.default.email_subject = TEXT plugin.tx_thmailformplus_pi1.default.email_subject.data = GPVar:subject # the user mail is sent to the email address the user entered in the form plugin.tx_thmailformplus_pi1.default.email_sendtouser = email # usbject of the user mail plugin.tx_thmailformplus_pi1.default.email_subject_user = Your contact request # sender of the mails plugin.tx_thmailformplus_pi1.default.email_sender = noreply@msvb.de # errorChecks for the form fields plugin.tx_thmailformplus_pi1.fieldConf { name { errorCheck = required } email { errorCheck = required,email } text { errorCheck = required } } plugin.tx_thmailformplus_pi1.default.contact_to = TEXT plugin.tx_thmailformplus_pi1.default.contact_to.data = GPvar:contact_to plugin.tx_thmailformplus_pi1.default.contact_to.wrap = | ### ###Empfängeradressen### ### [globalVar = GP:contact_to=Empfaenger1] plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger1@seite.de [globalVar = GP:contact_to=Empfaenger2] plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger2@seite.de [globalVar = GP:contact_to=Empfaenger3] plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger3@seite.de [globalVar = GP:contact_to=Empfaenger4] plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger4@seite.de [globalVar = GP:contact_to=Empfaenger5] plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger5@seite.de [globalVar = GP:contact_to=Empfaenger6] plugin.tx_thmailformplus_pi1.default.email = Empfaenger6@seite.de [end]
Was momentan alles funktioniert:
-Das Formular wird richtig angezeigt
-Wenn ich es ausfülle, bekommt der Absender des Formulares eine Bestätigungsmail
-Wenn das Formular abgeschickt wird, bekommt auch der Admin ein Mail.
( # receiver of the admin mail
plugin.tx_thmailformplus_pi1.default.email_to = admin@msvb.de )
Was nicht funktioniert:
-Das Postfach des ausgewählten Empfängers bleibt leer.
Achso in den Plug-In Einstellung steht nur Betreff für die Bestätigungsmail, also da ist kein Empfänger reingeschrieben, weil dieser ja über das Auswahlfeld im Formular ausgewählt werden soll.
Woran liegt das? Ich seh nich mehr durch.
Hoffe mir ist noch zu helfen!
Bis dahin wünsche ich einen schönen dritten Advent an alle!
Sieht eigentlich ganz gut aus.Hast du überprüft ob überhaupt ein Wert in contact_to übergeben wird? Also ob der richtige Wert in den GET/POST-Parametern steht?
Okeeeh es war ein Kampf, aber ich hab es endlich geschafft.
Hier die Lösung für Leute mit ähnlichen Problemen.
Das muss im Typoscript stehen: Natürlich müssen die Pfade noch jeweils angepasst werden.
Das Template (improved_demo.html) hab ich mit folgendem Code ergänzt:Code:###### #kontaktformular ###### # path to language file plugin.tx_thmailformplus_pi1.langFile = fileadmin/user_upload/Systemdateien/singlepage/improved_demo_lang.php # path to stylesheet file plugin.tx_thmailformplus_pi1.stylesheetFile = fileadmin/user_upload/Systemdateien/singlepage/improved_demo_css.css # specify the symbol for required fields plugin.tx_thmailformplus_pi1.default.required_marker = * # receiver of the admin mail plugin.tx_thmailformplus_pi1.default.email_to = admin@seite.de # subject of the admin mail is set to the subject the user entered in the form plugin.tx_thmailformplus_pi1.default.email_subject = TEXT plugin.tx_thmailformplus_pi1.default.email_subject.data = GPVar:subject # the user mail is sent to the email address the user entered in the form plugin.tx_thmailformplus_pi1.default.email_sendtouser = email # usbject of the user mail plugin.tx_thmailformplus_pi1.default.email_subject_user = Your contact request # sender of the mails plugin.tx_thmailformplus_pi1.default.email_sender = noreply@seite.de # errorChecks for the form fields plugin.tx_thmailformplus_pi1.fieldConf { name { errorCheck = required } email { errorCheck = required,email } text { errorCheck = required } } plugin.tx_thmailformplus_pi1.default.contact_to = TEXT plugin.tx_thmailformplus_pi1.default.contact_to.data = GPvar:contact_to ### ###Empfängeradressen### [globalVar = GP:contact_to=Empfaenger1] plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger1@seite.de [globalVar = GP:contact_to=Empfaenger2] plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger2@seite.de [globalVar = GP:contact_to=Empfaenger3] plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger3@seite.de [globalVar = GP:contact_to=Empfaenger4] plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger4@seite.de [globalVar = GP:contact_to=Empfaenger5] plugin.tx_thmailformplus_pi1.default.email_to = Empfaenger5@seite.de [globalVar = GP:contact_to=Empfaenger6] plugin.tx_thmailformplus_pi1.default.email = Empfaenger6@seite.de [end]
Code:<label for="kontakt">###LLL:kontakt### <select name="contact_to"> <option value="Empfaenger1" ###checked_contact_to_Empfaenger1###>Empfaenger1</option> <option value="Empfaenger2" ###checked_contact_to_Empfaenger2###>Empfaenger2</option> <option value="Empfaenger3" ###checked_contact_to_Empfaenger3###>Empfaenger3</option> <option value="Empfaenger4" ###checked_contact_to_Empfaenger4###>Empfaenger4</option> <option value="Empfaenger5" ###checked_contact_to_Empfaenger5###>Empfaenger5</option> <option value="Empfaenger6" ###checked_contact_to_Empfaenger6###>Empfaenger6</option> </select></label>
Um zur ursprünglichen Frage zurückzukehren:
Der Fehler lag an diesem unnötigen Eintrag im Typoscript.
Wo auch immer ich den her hatte, er hat mir das Leben sehr schwer gemacht. Kleine Ursache, große Wirkung.Code:plugin.tx_thmailformplus_pi1.default.contact_to.wrap = |
Viel Erfolg wünsch ich euch allen.
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
Lesezeichen