plugin.tx_news {
    view {
        layoutRootPaths.214 = EXT:t3template/Resources/Private/News/Layouts/
        partialRootPaths.214 = EXT:t3template/Resources/Private/News/Partials/
        templateRootPaths.214 = EXT:t3template/Resources/Private/News/Templates/
    }

    settings {
        displayDummyIfNoMedia = 0
        list.media.dummyImage = fileadmin/user_upload/news.png
        detail.errorHandling = redirectToListView
        startingpoint = {$const.global.newsStoragePid}
        detailPid = {$const.global.newsDetailPid}
        listPid = {$const.global.newsListPid}
        overrideFlexformSettingsIfEmpty := addToList(detailPid)
    }
}

config.recordLinks.tx_news {
    typolink {
        parameter = {$const.global.newsDetailPid}
        additionalParams.data = field:uid
        additionalParams.wrap = &tx_news_pi1[news]=|
        useCacheHash = 1
    }
}

# Referenzen
[page["uid"] in [{$const.global.referencesDetailPid},{$const.global.referencesListPid},59,64,63,62,61,60]]
    plugin.tx_news.settings.startingpoint = {$const.global.referencesStoragePid}
    plugin.tx_news.settings.detailPid = {$const.global.referencesDetailPid}
    plugin.tx_news.settings.listPid = {$const.global.referencesListPid}
    config.recordLinks.tx_news.typolink.parameter = {$const.global.referencesDetailPid}
[END]

# News my.weytec.com
[page["uid"] == {$const.my.newsListPid}]
    plugin.tx_news.settings.startingpoint = {$const.my.newsStoragePid}
    plugin.tx_news.settings.listPid = {$const.my.newsListPid}
[END]

# News www.weytec.com
[page["uid"] in [{$const.com.newsDetailPid},{$const.com.newsListPid}]]
    plugin.tx_news.settings.detailPid = {$const.com.newsDetailPid}
    plugin.tx_news.settings.listPid = {$const.com.newsListPid}
    config.recordLinks.tx_news.typolink.parameter = {$const.com.newsDetailPid}
[END]

# Referenzen www.weytec.com
[page["uid"] in [{$const.com.referencesDetailPid},{$const.com.referencesListPid},27,22,23,24,25,26]]
    plugin.tx_news.settings.startingpoint = {$const.global.referencesStoragePid}
    plugin.tx_news.settings.detailPid = {$const.com.referencesDetailPid}
    plugin.tx_news.settings.listPid = {$const.com.referencesListPid}
    config.recordLinks.tx_news.typolink.parameter = {$const.com.referencesDetailPid}
[END]

# News www.weytec.de
#[globalVar = TSFE:id={$const.de.newsDetailPid}, TSFE:id={$const.de.newsListPid}]
#    plugin.tx_news.settings.detailPid = {$const.de.newsDetailPid}
#    plugin.tx_news.settings.listPid = {$const.de.newsListPid}
#    config.recordLinks.tx_news.typolink.parameter = {$const.de.newsDetailPid}
#[global]

# Referenzen www.weytec.de
#[globalVar = TSFE:id={$const.de.referencesDetailPid}, TSFE:id={$const.de.referencesListPid}, TSFE:id=216, TSFE:id=215, TSFE:id=214, TSFE:id=213, TSFE:id=212, TSFE:id=211]
#    plugin.tx_news.settings.startingpoint = {$const.global.referencesStoragePid}
#    plugin.tx_news.settings.detailPid = {$const.de.referencesDetailPid}
#    plugin.tx_news.settings.listPid = {$const.de.referencesListPid}
#    config.recordLinks.tx_news.typolink.parameter = {$const.de.referencesDetailPid}
#[global]

# News www.weytec.ch
#[globalVar = TSFE:id={$const.ch.newsDetailPid}, TSFE:id={$const.ch.newsListPid}]
#    plugin.tx_news.settings.detailPid = {$const.ch.newsDetailPid}
#    plugin.tx_news.settings.listPid = {$const.ch.newsListPid}
#    config.recordLinks.tx_news.typolink.parameter = {$const.ch.newsDetailPid}
#[global]

# Referenzen www.weytec.ch
#[globalVar = TSFE:id={$const.fr.referencesDetailPid}, TSFE:id={$const.ch.referencesListPid}, TSFE:id=277, TSFE:id=276, TSFE:id=275, TSFE:id=274, TSFE:id=273, TSFE:id=272]
#    plugin.tx_news.settings.startingpoint = {$const.global.referencesStoragePid}
#    plugin.tx_news.settings.detailPid = {$const.ch.referencesDetailPid}
#    plugin.tx_news.settings.listPid = {$const.ch.referencesListPid}
#    config.recordLinks.tx_news.typolink.parameter = {$const.ch.referencesDetailPid}
#[global]

# News www.weytec.fr
#[globalVar = TSFE:id={$const.fr.newsDetailPid}, TSFE:id={$const.fr.newsListPid}]
#    plugin.tx_news.settings.detailPid = {$const.fr.newsDetailPid}
#    plugin.tx_news.settings.listPid = {$const.fr.newsListPid}
#    config.recordLinks.tx_news.typolink.parameter = {$const.fr.newsDetailPid}
#[global]

# Referenzen www.weytec.fr
#[globalVar = TSFE:id={$const.fr.referencesDetailPid}, TSFE:id={$const.fr.referencesListPid}, TSFE:id=338, TSFE:id=337, TSFE:id=336, TSFE:id=335, TSFE:id=334, TSFE:id=333]
#    plugin.tx_news.settings.startingpoint = {$const.global.referencesStoragePid}
#    plugin.tx_news.settings.detailPid = {$const.fr.referencesDetailPid}
#    plugin.tx_news.settings.listPid = {$const.fr.referencesListPid}
#    config.recordLinks.tx_news.typolink.parameter = {$const.fr.referencesDetailPid}
#[global]

# News www.weytec.it
#[globalVar = TSFE:id={$const.it.newsDetailPid}, TSFE:id={$const.it.newsListPid}]
#    plugin.tx_news.settings.detailPid = {$const.it.newsDetailPid}
#    plugin.tx_news.settings.listPid = {$const.it.newsListPid}
#    config.recordLinks.tx_news.typolink.parameter = {$const.it.newsDetailPid}
#[global]

# Referenzen www.weytec.it
#[globalVar = TSFE:id={$const.it.referencesDetailPid}, TSFE:id={$const.it.referencesListPid}, TSFE:id=399, TSFE:id=398, TSFE:id=397, TSFE:id=396, TSFE:id=395, TSFE:id=394]
#    plugin.tx_news.settings.startingpoint = {$const.global.referencesStoragePid}
#    plugin.tx_news.settings.detailPid = {$const.it.referencesDetailPid}
#    plugin.tx_news.settings.listPid = {$const.it.referencesListPid}
#    config.recordLinks.tx_news.typolink.parameter = {$const.it.referencesDetailPid}
#[global]

# News www.weytec.ru
#[globalVar = TSFE:id={$const.ru.newsDetailPid}, TSFE:id={$const.ru.newsListPid}]
#    plugin.tx_news.settings.detailPid = {$const.ru.newsDetailPid}
#    plugin.tx_news.settings.listPid = {$const.ru.newsListPid}
#    config.recordLinks.tx_news.typolink.parameter = {$const.ru.newsDetailPid}
#[global]

# Referenzen www.weytec.ru
#[globalVar = TSFE:id={$const.ru.referencesDetailPid}, TSFE:id={$const.ru.referencesListPid}, TSFE:id=460, TSFE:id=459, TSFE:id=458, TSFE:id=457, TSFE:id=456, TSFE:id=455]
#    plugin.tx_news.settings.startingpoint = {$const.global.referencesStoragePid}
#    plugin.tx_news.settings.detailPid = {$const.ru.referencesDetailPid}
#    plugin.tx_news.settings.listPid = {$const.ru.referencesListPid}
#    config.recordLinks.tx_news.typolink.parameter = {$const.ru.referencesDetailPid}
#[global]

# News www.weytec.us
#[globalVar = TSFE:id={$const.us.newsDetailPid}, TSFE:id={$const.us.newsListPid}]
#    plugin.tx_news.settings.detailPid = {$const.us.newsDetailPid}
#    plugin.tx_news.settings.listPid = {$const.us.newsListPid}
#    config.recordLinks.tx_news.typolink.parameter = {$const.us.newsDetailPid}
#[global]

# Referenzen www.weytec.us
#[globalVar = TSFE:id={$const.us.referencesDetailPid}, TSFE:id={$const.us.referencesListPid}, TSFE:id=521, TSFE:id=520, TSFE:id=519, TSFE:id=518, TSFE:id=517, TSFE:id=516]
#    plugin.tx_news.settings.startingpoint = {$const.global.referencesStoragePid}
#    plugin.tx_news.settings.detailPid = {$const.us.referencesDetailPid}
#    plugin.tx_news.settings.listPid = {$const.us.referencesListPid}
#    config.recordLinks.tx_news.typolink.parameter = {$const.us.referencesDetailPid}
#[global]

# News www.weytec.co.uk
#[globalVar = TSFE:id={$const.co.uk.newsDetailPid}, TSFE:id={$const.co.uk.newsListPid}]
#    plugin.tx_news.settings.detailPid = {$const.co.uk.newsDetailPid}
#    plugin.tx_news.settings.listPid = {$const.co.uk.newsListPid}
#    config.recordLinks.tx_news.typolink.parameter = {$const.co.uk.newsDetailPid}
#[global]

# Referenzen www.weytec.co.uk
#[globalVar = TSFE:id={$const.co.uk.referencesDetailPid}, TSFE:id={$const.co.uk.referencesListPid}, TSFE:id=582, TSFE:id=581, TSFE:id=580, TSFE:id=579, TSFE:id=578, TSFE:id=577]
#    plugin.tx_news.settings.startingpoint = {$const.global.referencesStoragePid}
#    plugin.tx_news.settings.detailPid = {$const.co.uk.referencesDetailPid}
#    plugin.tx_news.settings.listPid = {$const.co.uk.referencesListPid}
#    config.recordLinks.tx_news.typolink.parameter = {$const.co.uk.referencesDetailPid}
#[global]

# News www.weytec.asia
#[globalVar = TSFE:id={$const.asia.newsDetailPid}, TSFE:id={$const.asia.newsListPid}]
#    plugin.tx_news.settings.detailPid = {$const.asia.newsDetailPid}
#    plugin.tx_news.settings.listPid = {$const.asia.newsListPid}
#    config.recordLinks.tx_news.typolink.parameter = {$const.asia.newsDetailPid}
#[global]

# Referenzen www.weytec.asia
#[globalVar = TSFE:id={$const.asia.referencesDetailPid}, TSFE:id={$const.asia.referencesListPid}, TSFE:id=643, TSFE:id=642, TSFE:id=641, TSFE:id=640, TSFE:id=639, TSFE:id=638]
#    plugin.tx_news.settings.startingpoint = {$const.global.referencesStoragePid}
#    plugin.tx_news.settings.detailPid = {$const.asia.referencesDetailPid}
#    plugin.tx_news.settings.listPid = {$const.asia.referencesListPid}
#    config.recordLinks.tx_news.typolink.parameter = {$const.asia.referencesDetailPid}
#[global]
