[TYPO3-german] TYPO3 4.6 sysext:FORM Problem senderEmail
Josef Florian Glatz
typo3 at josdesign.at
Wed Nov 2 19:48:07 CET 2011
Hallo Liste,
ich teste gerade zum ersten Mal nachdem ich das Manual überflogen habe.
Allerdings finde ich im Manual keine Infos zu den PostProcessor, wie ich
die SenderEmail dynamisch aus der Formkonfiguration auslesen kann.
Hier mein Konfigcode:
enctype = multipart/form-data
id = contactform
method = post
prefix = tx_form
confirmation = 1
postProcessor {
1 = mail
1 {
recipientEmail = typo3 at josdesign.at
senderEmail = ????????MAILDESABSENDERS????????
}
}
10 = FIELDSET
10 {
legend {
value = Deine Daten
}
10 = FIELDSET
10 {
class = predefined-name fieldset-subgroup fieldset-horizontal label-below
legend {
value = Voller Name
}
10 = TEXTLINE
10 {
label {
value = Prefix
}
name = prefix
size = 4
layout (
<input />
<label />
)
}
20 = TEXTLINE
20 {
label {
value = First name
}
name = firstName
size = 10
layout (
<input />
<label />
)
}
30 = TEXTLINE
30 {
label {
value = Last name
}
name = lastName
size = 15
layout (
<input />
<label />
)
}
40 = TEXTLINE
40 {
label {
value = Suffix
}
name = suffix
size = 4
layout (
<input />
<label />
)
}
}
20 = TEXTLINE
20 {
name = email
filters {
1 = lowercase
1 {
}
}
label {
value = Email
}
}
}
20 = FIELDSET
20 {
legend {
value = Deine Nachricht
}
10 = TEXTLINE
10 {
name = subject
label {
value = Betreff
}
}
20 = TEXTAREA
20 {
cols = 40
name = body
rows = 5
label {
value = Deine Message
}
}
30 = SUBMIT
30 {
name = 12
value = Nachricht senden, aber hurtig!!!
}
}
rules {
1 = required
1 {
breakOnError = 0
showMessage = 1
message = *
error = Required
element = firstName
}
2 = required
2 {
breakOnError = 0
showMessage = 1
message = *
error = Required
element = lastName
}
3 = required
3 {
breakOnError =
showMessage = 1
message = erforderlich
error = Die Email musst du angeben!
element = email
}
4 = email
4 {
breakOnError = 0
showMessage = 1
message = (rainer.zufall at gmx.net)
error = Gültige Emailadresse eintragen
element = email
}
5 = required
5 {
breakOnError = 0
showMessage =
message = Erforderlich
error = Gib einen Betreff ein!
element = subject
}
6 = required
6 {
breakOnError = 0
showMessage =
message = *
error = Hey gib deine Nachricht ein!
element = body
}
}
Mit bestem Dank im Voraus,
Josef!
--
Regards,
Josef Florian Glatz
http://typo3blog.at
More information about the TYPO3-german
mailing list