[TYPO3-english] Typoscript localization howto
Christian Tardif
christian.tardif at servinfo.ca
Thu Jul 28 06:29:55 CEST 2011
Hi,
I have a typoscript code in template setup that needs to know about
current language. Here is the function:
plugin.tx_powermail_pi1.email.recipient_mail {
email_query = TEXT
email_query.value = SELECT email FROM fe_users WHERE uid = ###UID8###
}
I would need something like:
plugin.tx_powermail_pi1.email.recipient_mail {
email_query = TEXT
if (language == "en") {
email_query.value = SELECT email FROM fe_users WHERE uid = ###UID10###
} else {
email_query.value = SELECT email FROM fe_users WHERE uid = ###UID8###
}
}
The change is in the WHERE clause. So, how can I make this script know
about localization?
Thanks.
Christian...
More information about the TYPO3-english
mailing list