[TYPO3-german] Condition in TS richtig setzen

Christian Leicht usenet at schani.com
Wed Mar 4 16:46:12 CET 2015


Hallo,

ich muss für ein formhandler Formular eine Weiche für 2 Domains/Sprachen 
einbauen und habe mit Google widersprüchliche Condition Verwendungen 
gefunden.


Zur Zeit benutze ich folgendes:

[globalString = IENV:HTTP_HOST = www.xxx.de]||[globalString = 
IENV:HTTP_HOST = xxx.de]

	plugin.Tx_Formhandler.settings { ...

[ELSE]

	plugin.Tx_Formhandler.settings { ...

[GLOBAL]


Im Web habe ich aber auch folgende Möglichkeit gefunden:

[globalString = IENV:HTTP_HOST = www.xxx.de, IENV:HTTP_HOST = xxx.de]
	plugin.Tx_Formhandler.settings { ...
[ELSE]
	plugin.Tx_Formhandler.settings { ...
[GLOBAL]



Oder soll ich die 2. Sprachversion auch noch angeben, also:

[globalString = IENV:HTTP_HOST = www.xxx.de]||[globalString = 
IENV:HTTP_HOST = xxx.de]
	plugin.Tx_Formhandler.settings { ...
[globalString = IENV:HTTP_HOST = www.xxx.com]||[globalString = 
IENV:HTTP_HOST = xxx.com]
	plugin.Tx_Formhandler.settings { ...
[GLOBAL]

Was ist denn die richtige Variante?

Besten Dank für Hilfe

Christian


More information about the TYPO3-german mailing list