[TYPO3-english] th_mailformplus option select multilanguage
G.Unger
skyfreak1 at gmx.net
Sat Apr 24 23:21:22 CEST 2010
hello list
I know there is a new formhandler extension, nevertheless I would like
to know sth. about th_mailformlus, slecet/option fields and
multilanguagesites.
the question is the following:
in generel a select/option field for eg title workz like this
<select name="title" id="title">
<option value="">###LLL:title_label0###</option>
<option value="###LLL:title_label1###">###LLL:title_label1###</option>
<option value="###LLL:title_label2###">###LLL:title_label2###</option>
</select>
where
title_label0 = please choose
title_label1 = Mrs.
title_label2 = Mr.
I use the ###LLL:...### for the value as well, as the admin mail goes
to different departments and shows the value in there apropriate
language.
so far so good, this workz with a little glitch.
the title field should be mandatory. so when the user doesn't fill it
an error message is generated. no problem, I can achieve the validation
and error-msg.
but when he fills this field and sends the form again missing out some
other mandatory field(s), the vaule is not kept.
ok normally this could work like this
<select name="title" id="title">
<option value="">###LLL:title_label0###</option>
<option value="1" ###selected_title_1###>###LLL:title_label1###</option>
<option value="2" ###selected_title_2###>###LLL:title_label2###</option>
</select>
and on resubmit of the form the value is kept. but then again in the
admin mail the value is not translated (as there is no LLL in the
value) and all departments receive either 1 or 2 instead of Mrs./Mr. in
there apropriate language.
###selected_title_LLL:title_label1### obviously doesn't work :(
I hope I explained well what I am trying to achive and hope s.o. can
point me into the right direction.
rgds & thx,
guido
More information about the TYPO3-english
mailing list