config {
    #baseURL = http://dev.zwei14.net/hrelectronic.com/
    #absRefPrefix = http://dev.zwei14.net/hrelectronic.com/

    typolinkCheckRootline = 1
    typolinkEnableLinksAcrossDomains = 1
    content_from_pid_allowOutsideDomain = 1

    linkVars = L
    sys_language_uid = 0
    language = de
    locale_all = de_DE.utf-8
    htmlTag_setParams = lang="de" class="no-js"
    #sys_language_overlay = 1
    sys_language_overlay = hideNonTranslated

    # default lang parameter
#    defaultGetVars {
#        L = 0
#    }

    ## Eindeutigere Fehlermeldungen im Frontend
    #  https://docs.typo3.org/typo3cms/TyposcriptReference/Setup/Config/Index.html#contentobjectexceptionhandler
    contentObjectExceptionHandler = 0

    #disablePrefixComment = 1

    ## RealUrl
    absRefPrefix = /
    tx_realurl_enable = 1
    prefixLocalAnchors = all

    ## Spam-Schutz
    #spamProtectEmailAddresses = ascii
    spamProtectEmailAddresses = -7
    #spamProtectEmailAddresses_atSubst = (at)
    #spamProtectEmailAddresses_lastDotSubst = (dot)

    ## Indexed Search
    # If the cache is disabled, no indexed_search records are created
    no_cache = 0
    # Enable the indexer
    index_enable = 1
    index_externals = 1
    index_metatags = 1

    ## CSS and JS compression
    compressCss = 1
    concatenateCss = 1
    compressJs = 1
    concatenateJs = 1

    ## Title Tag
    pageTitleFirst = 1
    pageTitleSeparator = |
    pageTitleSeparator.noTrimWrap = | | |
    noPageTitle = 2
}

config {
    headerComment = FROM ZWEI14 WITH ❤
}

/*
[like(request.getNormalizedParams().getHttpHost(), '*.weytec.com')]
    config {
        linkVars = L
        sys_language_uid = 1
        language = en
        locale_all = en_US.utf-8
        htmlTag_setParams = lang="en" class="no-js"
    }
[END]
*/

[siteLanguage("languageId") == "1"]
    config {
        linkVars = L
        sys_language_uid = 1
        language = en
        locale_all = en_US.utf-8
        htmlTag_setParams = lang="en" class="no-js"
    }
[END]

[siteLanguage("languageId") == "2"]
    config {
        linkVars = L
        sys_language_uid = 2
        language = fr
        locale_all = fr_FR.utf-8
        htmlTag_setParams = lang="fr" class="no-js"
    }
[END]

[siteLanguage("languageId") == "3"]
    config {
        linkVars = L
        sys_language_uid = 3
        language = it
        locale_all = it_IT.utf-8
        htmlTag_setParams = lang="it" class="no-js"
    }
[END]

[siteLanguage("languageId") == "4"]
    config {
        linkVars = L
        sys_language_uid = 4
        language = ru
        locale_all = ru_RU.utf-8
        htmlTag_setParams = lang="ru" class="no-js"
    }
[END]

[request.getNormalizedParams().getHttpHost() == 'my.weytec.com' || request.getNormalizedParams().getHttpHost() == 'my.weytec.com.local']
    /*
    config {
        linkVars = L
        sys_language_uid = 1
        language = en
        locale_all = en_US.utf-8
        htmlTag_setParams = lang="en" class="no-js"
        sys_language_mode = content_fallback

        typolinkLinkAccessRestrictedPages = {$const.my.rootPid}

        headerComment = DIESE WEBSITE IST </> MIT ❤ VON ZWEI14 [www.zwei14.de]
    }
    */
    config {
        no_cache = 1
        typolinkLinkAccessRestrictedPages = {$const.my.rootPid}
        headerComment = DIESE WEBSITE IST </> MIT ❤ VON ZWEI14 [www.zwei14.de]
    }
[END]

/*
[getTSFE().beUserLogin]
    config {
        compressCss = 0
        concatenateCss = 0
        compressJs = 0
        concatenateJs = 0
    }
[END]
*/

[applicationContext matches "/^Development/" || applicationContext matches "#^Production/Staging#"]
    config {
        compressCss = 0
        concatenateCss = 1
        compressJs = 0
        concatenateJs = 1
    }
[END]

## Extend Fluid Content Elements
lib.pageId = TEXT
lib.pageId.data = page:uid
lib.fluidContent.templateRootPaths.214 = EXT:t3template/Resources/Private/Templates/
lib.contentElement.templateRootPaths.214 = EXT:t3template/Resources/Private/Templates/
lib.fluidContent.partialRootPaths.214 = EXT:t3template/Resources/Private/Partials/
lib.contentElement.partialRootPaths.214 = EXT:t3template/Resources/Private/Partials/

## Wrap Content Elements
tt_content.stdWrap.dataWrap = <div id="cec-{field:uid}" class="cec cec-{field:CType}">|</div>

## Edit Content Image Max Sizes
tt_content.textmedia.dataProcessing.20 {
    maxGalleryWidth.override.cObject = TEXT
    maxGalleryWidth.override.cObject {
        value = 1200
    }

    maxGalleryWidthInText.override.cObject = TEXT
    maxGalleryWidthInText.override.cObject {
        value = 768
    }
}
tt_content.image.dataProcessing.20 {
    maxGalleryWidth.override.cObject = TEXT
    maxGalleryWidth.override.cObject {
        value = 1200
    }

    maxGalleryWidthInText.override.cObject = TEXT
    maxGalleryWidthInText.override.cObject {
        value = 768
    }
}

/*
lib.parseFunc_RTE.tags.link.typolink.parameter {
    postUserFunc = ZWEI14\T3template\Utility\InheritanceUtility->templatePageLinkToLocalLink
    postUserFunc {
        # Rootseite der Vorlage
        templatePage = {$const.global.contentStoragePid}
        # Root der Website
        localRoot = {$const.rootPid}
    }
}
*/

/*
config.recordLinks {
    t3template {
        typolink {
            userFunc = ZWEI14\T3template\Utility\InheritanceUtility->templatePageLinkToLocalLink
            userFunc {
                # Rootseite der Vorlage
                templatePage = {$const.global.contentStoragePid}
                # Root der Website
                localRoot = {$const.rootPid}
            }
        }
    }
}
*/

/*
config.recordLinks {
    t3template {
        typolink {
            userFunc = ZWEI14\T3template\UserFunc\TypolinkUserFunc->parseLinkHandlerTypolink
            userFunc {
                defaultDetailPid = 53
            }
        }
    }
}
*/

[page["tx_t3template_language_mode_free"] == 1]
    config.sys_language_overlay = 0
[END]

[ZWEI14\T3template\Condition\LanguageModeFreeChecked]
    config.sys_language_overlay = 0
[global]
