Hallo taiwi!
Erst mal nicht verzweifeln. Ich habe es hingekriegt. Dann kriegst du es auch hin!
Ich bin jetzt nur schon wieder bei einem anderen Projekt, und hoffe, hier alles noch zusammenzukriegen. Also falls es immer noch nicht klappt, melde dich noch mal! Ich muss eh noch Schulung für Kunden vorbereiten, und seh mir das dabei noch mal an.
Setup:
# Contact-Formular:
plugin.tx_desimplecalendar_pi1.form.Contact.10.value = Weitere Infos zum Event
plugin.tx_desimplecalendar_pi1.form.Contact.10.wrap = <h3>|</h3>
plugin.tx_desimplecalendar_pi1.form.Contact.15.value =
plugin.tx_desimplecalendar_pi1.form.Contact.15.wrap = <p>|</p>
plugin.tx_desimplecalendar_pi1.form.Contact {
20 < tt_content.mailform.20
20.stdWrap.wrap = <input type="hidden" name="locationData" value="53:tt_content:68" /><table border="0" cellspacing="0" cellpadding="0" class="csc-mailform"> | </table>
20.layout = <tr><td align="left" width="113">###LABEL###</td><td><img src="clear.gif" width="10" alt="" /></td><td>###FIELD###</td></tr>
20.dataArray {
10.label = Name: *
10.type = *name = input,42
10.value =
20.label = E-Mail: *
20.type = *email=input,42
30.label = Nachricht:
30.type = address=textarea,41,8
30.value =
# 35.label = Bitte Kontakt aufnehmen:
# 35.type = contact_me=check
# 35.value = 1
40.type = html_enabled=hidden
40.value = 1
50.type = subject=hidden
50.value.dataWrap = Info-Nachfrage: "{field:title}" Event. (Event N°{field:uid})|
60.type = formtype_mail = submit
60.value = Absenden
}
20.REQ.labelWrap.wrap = <p class="csc-form-label-req">|</p>
# redirect funktioniert nicht => type verwenden für Dankeseite
20.type = 35
20.recipient =
20.recipient.field = subheader
20.locationData = 0
25 = TEXT
25.value = * Pflichtfelder
25.wrap = <p class="mailformrequired">|</p>
30 = TEXT
30.value =
30.wrap = <p>|</p>
}
# Subscribe-Formular
plugin.tx_desimplecalendar_pi1.form.Subscription {
10 = TEXT
10.value = Anmeldung zum Event
10.wrap = <h3>|</h3>
15 = TEXT
15.value = Interessiert? - Dann nichts wie los.<br />Die Bezahlung erfolgt per Überweisung. Füllen Sie bitte unser Anmeldeformular aus ....
15.wrap = <p class="bodytext">|</p>
20 < tt_content.mailform.20
20.stdWrap.wrap = <input type="hidden" name="locationData" value="53:tt_content:68" /><table border="0" cellspacing="0" cellpadding="0" class="csc-mailform"> | </table>
20.layout = <tr><td align="left" width="113">###LABEL###</td><td><img src="clear.gif" width="10" alt="" /></td><td>###FIELD###</td></tr>
20.dataArray {
10.label = Vorname: *
10.type = *Vorname = input,42
10.value =
11.label = Nachname: *
11.type = *Nachname = input,42
12.label = Straße/ Nr.: *
12.type = *Strae_Nr = input,42
13.label = PLZ/ Ort: *
13.type = *PLZ_Ort = input,42
14.label = Telefon: *
14.type = *Telefon = input,42
15.label = Geburtsdatum: *
15.type = *Geburtsdatum = input,42
20.label = E-Mail: *
20.type = *email=input,42
30.label = Event:
30.type = event=textarea,41,2
30.value.field = title
30.wrap = <b>|</b>
32.label = Nachricht:
32.type = address=textarea,41,4
32.value = Hiermit melde ich mich zu diesem Event an...
36.label = <a href="/kochart-agb.html" class="ablack" title="Link: Allgemeine Geschäftsbedingungen" alt="Link: Allgemeine Geschäftsbedingungen"><b>AGB</b> akzeptiert: *</a>
36.type = accept_agb=check
40.type = html_enabled=hidden
40.value = 1
50.type = subject=hidden
50.value.dataWrap = Anmeldung für folgenden Event: {field:title} (Event N°{field:uid})|
100.type = formtype_mail = submit
100.value = Absenden
}
20.REQ.labelWrap.wrap = <p class="csc-form-label-req">|</p>
# redirect funktioniert nicht => type verwenden für Dankeseite
20.type = 35
20.recipient =
20.recipient.field = subheader
20.locationData = 0
25 = TEXT
25.value = * Pflichtfelder
25.wrap = <p class="mailformrequired">|</p>
30 = TEXT
30.value =
30.wrap = <p>|</p>
40 = TEXT
40.value =
40.wrap = <b>|</b>
}
Dann erstellst du auf deiner Detail-Seite, auf der das Formular ausgegeben wird, ein Seiteninhaltselement mit dem Typ: Formular und gibst dort lediglich unter "Empf.-EMailadr." die E-mail-Adresse ein (dieses Formular erscheint dann nur im Quellcode)
Jetzt musst du in meinem Setup-Code die Stelle:
<input type="hidden" name="locationData" value="53:tt_content:68" /> entsprechend anpassen:
(53 = Seiten-ID und 68 = Inhalts-ID des soeben erstellten Formulars).
Viel Glück - und sonst melde dich noch mal!
Was ich übrigens am Simple-Calendar (oder an meiner Lösung hier) nicht so gut finde ist, dass ich nicht automatisch eine Bestätigungsmail an den Absender schicken kann....