plugin.tx_bgmtimdownload_form {
	view {
		templateRootPaths.0 = EXT:bgm_tim_download/Resources/Private/Templates/
		templateRootPaths.1 = {$plugin.tx_bgmtimdownload_form.view.templateRootPath}
		partialRootPaths.0 = EXT:bgm_tim_download/Resources/Private/Partials/
		partialRootPaths.1 = {$plugin.tx_bgmtimdownload_form.view.partialRootPath}
		layoutRootPaths.0 = EXT:bgm_tim_download/Resources/Private/Layouts/
		layoutRootPaths.1 = {$plugin.tx_bgmtimdownload_form.view.layoutRootPath}
	}

	persistence {
		storagePid = 19
		#recursive = 1
	}

	settings{
		adminEmails = {$plugin.tx_bgmtimdownload.settings.adminEmails}
		feuserGroup = {$plugin.tx_bgmtimdownload.settings.feuserGroup}
		defaultpassword = {$plugin.tx_bgmtimdownload.settings.defaultpassword}

    mailSubject {
      prefixParameter = utm_campaign
      prefixes {
        bgmtest = Postkartenaktion:
      }
    }
	}

	features {
		#skipDefaultArguments = 1
	}
	mvc {
		#callDefaultActionIfActionCantBeResolved = 1
	}
}

#[PIDinRootline = {$plugin.tx_bgmtimdownload.settings.timDownloadPage}]
[{$plugin.tx_bgmtimdownload.settings.timDownloadPage} in tree.rootLineIds]
<INCLUDE_TYPOSCRIPT: source="FILE:typo3conf/ext/bgm_theme_azh/Configuration/Typoscript/Setup/Config.ts">

plugin.tx_scriptmerger {
	javascript.enable = 0
}

config.removeDefaultJS = 0

<INCLUDE_TYPOSCRIPT: source="FILE:typo3conf/ext/bgm_tim_download/Configuration/Typoscript/Setup/Page.ts">
<INCLUDE_TYPOSCRIPT: source="FILE:typo3conf/ext/bgm_theme_azh/Configuration/Typoscript/Setup/Font.ts">

<INCLUDE_TYPOSCRIPT: source="DIR:typo3conf/ext/bgm_theme_azh/Configuration/Typoscript/Local/" extensions="ts">
[global]

# No tracking if BE-Login or Google Page Speed
#[PIDinRootline = {$plugin.tx_bgmtimdownload.settings.timDownloadPage}] && [getTSFE().beUserLogin] || [PIDinRootline = {$plugin.tx_bgmtimdownload.settings.timDownloadPage}] && [globalString = IENV:HTTP_USER_AGENT = *Speed Insights*]
[{$plugin.tx_bgmtimdownload.settings.timDownloadPage} in tree.rootLineIds && getTSFE().beUserLogin]
	page.cssInline.85577 >
	page.jsInline.85577 >
	page.includeJSFooterlibs.facebook >
[global]

[{$plugin.tx_bgmtimdownload.settings.timDownloadPage} in tree.rootLineIds && request.getNormalizedParams().getHttpHost() == '*Speed Insights*']
  page.cssInline.85577 >
  page.jsInline.85577 >
  page.includeJSFooterlibs.facebook >
[global]

#[page|tx_bgm_tim_download = 1]
[page["tx_bgm_tim_download"] == 1]
page.50 = COA
page.50{
	stdWrap.typolink{
		parameter = {$plugin.tx_bgmtimdownload.settings.timDownloadPage}
		ATagParams = id="tim-download-flag" data-parent="{field:uid}-flag"
    ATagParams.insertData = 1
    additionalParams = &utm_campaign={GP:utm_campaign}
    additionalParams.insertData = 1
    additionalParams.stdWrap.if.isTrue.data = GP:utm_campaign
	}

	10 = COA
	10{
		stdWrap.wrap = <div class="text">|</div>
		10 = TEXT
		10.value = DEMO
		10.wrap = <span>|</span>

		20 = TEXT
		20.value = herunterladen
	}
}
[global]

[not(request.getQueryParams()["utm_campaign"] == "")]
  page.50 = COA_INT
[global]
