lib.newsletter = FLUIDTEMPLATE
lib.newsletter {
    file = EXT:t3template/Resources/Private/Partials/Newsletter.html

    variables {
        formAction = TEXT
        formAction.value = {$const.global.newsletterSubscriptionPid}
    }
}

[request.getNormalizedParams().getHttpHost() == 'my.weytec.com' || request.getNormalizedParams().getHttpHost() == 'my.weytec.com.zwei14.website' || request.getNormalizedParams().getHttpHost() == 'my.weytec.com.local']
    lib.newsletter.variables.formAction.value = {$const.my.newsletterSubscriptionPid}
[END]

[request.getNormalizedParams().getHttpHost() == 'www.weytec.com' || request.getNormalizedParams().getHttpHost() == 'www.weytec.com.local']
    lib.newsletter.variables.formAction.value = {$const.com.newsletterSubscriptionPid}
[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.de' || request.getNormalizedParams().getHttpHost() == 'www.weytec.de.local']
#    lib.newsletter.variables.formAction.value = {$const.de.newsletterSubscriptionPid}
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.ch' || request.getNormalizedParams().getHttpHost() == 'www.weytec.ch.local']
#    lib.newsletter.variables.formAction.value = {$const.ch.newsletterSubscriptionPid}
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.fr' || request.getNormalizedParams().getHttpHost() == 'www.weytec.fr.local']
#    lib.newsletter.variables.formAction.value = {$const.fr.newsletterSubscriptionPid}
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.it' || request.getNormalizedParams().getHttpHost() == 'www.weytec.it.local']
#    lib.newsletter.variables.formAction.value = {$const.it.newsletterSubscriptionPid}
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.ru' || request.getNormalizedParams().getHttpHost() == 'www.weytec.ru.local']
#    lib.newsletter.variables.formAction.value = {$const.ru.newsletterSubscriptionPid}
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.us' || request.getNormalizedParams().getHttpHost() == 'www.weytec.us.local']
#    lib.newsletter.variables.formAction.value = {$const.us.newsletterSubscriptionPid}
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.co.uk' || request.getNormalizedParams().getHttpHost() == 'www.weytec.co.uk.local']
#    lib.newsletter.variables.formAction.value = {$const.co.uk.newsletterSubscriptionPid}
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.asia' || request.getNormalizedParams().getHttpHost() == 'www.weytec.asia.local']
#    lib.newsletter.variables.formAction.value = {$const.asia.newsletterSubscriptionPid}
#[END]
