[TYPO3-UG Dutch] ext: formhandler condition en multi language in dropdown menu

info at emaginit.be info at emaginit.be
Fri May 17 20:54:38 CEST 2013


Beste typo3-ers,

Ik heb een multistep formulier met formhandler extensie gemaakt die het uitgangspunt is van 6 verschillende formulieren in zowel nederlands als frans.

In het kort heb ik volgende vraag met betrekking tot meertaligheid :

De dropdown menu kan ik niet meertalig maken omwille van field1=value1
in deze regel zit de beperking : conditions.OR1.AND1 = field1=value1
value1 zou ik willen invullen met de gepaste taal uit :  lang.xml bestand

Volgende lijkt niet te werken:  	conditions.OR1.AND1 = vragenlijst = ###LLL:vragenlijst_1###
Ziet iemand van jullie het antwoord op mijn probleemstelling ?

Ik heb 6 verschillende vragenlijsten en start vanuit een dropdown menu 


In mijn ts_setup.txt bestand heb ik volgende geconfigureerd

plugin.Tx_Formhandler.settings.predef.formhandler-multistep-forms-advanced-gevel-application {
	# Configure different settings for Formhandler using conditions like these
	if {
		1 {
			
			# If the user chose "Façalu BE" as desired position
			conditions.OR1.AND1 = vragenlijst = Facalu LR110 BE
			isTrue {
				2 {
					templateSuffix = _a1
				}
				
			}
		}
		2 {

			# If the user chose "Façalu NL" as desired position.
			conditions.OR1.AND1 = vragenlijst = Facalu LR110 NL
			isTrue {
				2 {
					templateSuffix = _a2
				}
				
			}
		}
		3 {

			# If the user chose "MarcovisEisys BE" as desired position
			conditions.OR1.AND1 = vragenlijst = Marcoviseisys BE
			isTrue {
				2 {
					templateSuffix = _a3
				}
							}
		}
		4 {

			# If the user chose "MarcovisEisys NL" as desired position
			conditions.OR1.AND1 = vragenlijst = Marcoviseisys NL
			isTrue {
				2 {
					templateSuffix = _a4
				}
				
			}
		}
		5 {

			# If the user chose "Isolco3000P BE" as desired position
			conditions.OR1.AND1 = vragenlijst = Isolco 3000 P BE
			isTrue {
				2 {
					templateSuffix = _a5
				}
				
			}
		}
		6 {

			# If the user chose "Isolco3000P NL" as desired position
			conditions.OR1.AND1 = vragenlijst = Isolco 3000 P NL
			isTrue {
				2 {
					templateSuffix = _a6
				}
				
			}
		}
	}

In de mastertemplate heb ik het volgende :
<!-- ###master_vragenlijst### -->
###error_vragenlijst###    
<div class="type-text">
	<label for="vragenlijst" ###is_error_vragenlijst###>###LLL:vragenlijst### ###required_vragenlijst###</label>
	<select id="vragenlijst" name="###formValuesPrefix###[vragenlijst]" class="select">
		<option value="">---</option>
		<option value="###LLL:vragenlijst_1###" ###selected_vragenlijst_###LLL:vragenlijst_1######>###LLL:vragenlijst_1###</option>
		<option value="###LLL:vragenlijst_2###" ###selected_vragenlijst_###LLL:vragenlijst_2######>###LLL:vragenlijst_2###</option>
		<option value="###LLL:vragenlijst_3###" ###selected_vragenlijst_###LLL:vragenlijst_3######>###LLL:vragenlijst_3###</option>
		<option value="###LLL:vragenlijst_4###" ###selected_vragenlijst_###LLL:vragenlijst_4######>###LLL:vragenlijst_4###</option>
		<option value="###LLL:vragenlijst_5###" ###selected_vragenlijst_###LLL:vragenlijst_5######>###LLL:vragenlijst_5###</option>
		<option value="###LLL:vragenlijst_6###" ###selected_vragenlijst_###LLL:vragenlijst_6######>###LLL:vragenlijst_6###</option>
	</select>
	###validate_vragenlijst###
</div>
<!-- ###master_vragenlijst### -->


In de lang.xml
<languageKey index="nl" type="array">
<label index="vragenlijst">Kies vragenlijst product :</label>
<label index="vragenlijst_1">Facalu LR110 BE</label>
<label index="vragenlijst_2">Facalu LR110 NL</label>
<label index="vragenlijst_3">Marcoviseisys BE</label>
<label index="vragenlijst_4">Marcoviseisys NL</label>
<label index="vragenlijst_5">Isolco 3000 P BE</label>
<label index="vragenlijst_6">Isolco 3000 P NL</label>
…

<languageKey index="fr" type="array">
<label index="vragenlijst">Choississez votre questionnaire selon produit:</label>
<label index="vragenlijst_1">Facalu LR110 pour la Belgique</label>
<label index="vragenlijst_2">Facalu LR110 pour les Pays-Bas</label>
<label index="vragenlijst_3">Marcoviseisys pour la Belgique</label>
<label index="vragenlijst_4">Marcoviseisys pour les Pays-Bas</label>
<label index="vragenlijst_5">Isolco 3000 P pour la Belgique</label>
<label index="vragenlijst_6">Isolco 3000 P pour les Pays-Bas</label>
…

Is er een mogelijkheid om de meertaligheid binnen de dropdown selectie aan te spreken ipv van de vaste waarde in het veld?

Alvast bedankt voor enige
 hulp.

Met vriendelijke groeten.


Aline Vandecasteele



More information about the TYPO3-UG-Dutch mailing list