Add dedicated page types for exports to avoid caching issues

This commit is contained in:
Björn Fromme
2018-06-27 12:55:01 +02:00
parent fa37142f32
commit 264d14f5f3
6 changed files with 49 additions and 3 deletions
@@ -32,6 +32,8 @@ plugin.tx_epproducts {
priceTableRoomTypes = 1,2,3,4,5,6,7,8,9,10
# cat=plugin.tx_epproducts//a; type=string; label=Ignore following IPs in searchlog
searchLogIgnoreIps =
# cat=plugin.tx_epproducts//a; type=string; label=Page UID with reseller export plugin
resellerExportPageUid =
}
persistence {
# cat=plugin.tx_epproducts//a; type=string; label=Default storage PID
@@ -36,6 +36,7 @@ plugin.tx_epproducts {
groupsPageUid = {$plugin.tx_eptheme.settings.groupsPageUid}
groupsContactFormPageUid = {$plugin.tx_eptheme.settings.groupsContactFormPageUid}
googleMapsApiKey = {$plugin.tx_eptheme.settings.googleMapsApiKey}
resellerExportPageUid = {$plugin.tx_epproducts.settings.resellerExportPageUid}
datePickerPresets {
1 {
label = Silvester
@@ -0,0 +1,31 @@
xmlExport = PAGE
xmlExport {
typeNum = 1972
config {
xhtml_cleaning = none
no_cache = 1
disableAllHeaderCode = 1
additionalHeaders = Content-Type: text/xml; charset=utf-8
simulateStaticDocuments = 0
admPanel = 0
debug = 0
tx_realurl_enable = 1
}
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = EpProducts
pluginName = reseller
vendorName = EP
switchableControllerActions {
Reseller {
1 = xml
}
}
}
}
excelExport < xmlExport
excelExport.typeNum = 1984
excelExport.config.additionalHeaders = Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
excelExport.10.switchableControllerActions.Reseller.1 = excel
@@ -94,6 +94,7 @@ lib.stdheader.3.headerClass >
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ep_theme/Configuration/TypoScript/Page/Main.ts">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ep_theme/Configuration/TypoScript/Page/Ajax.ts">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ep_theme/Configuration/TypoScript/Page/XMLSitemap.ts">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ep_theme/Configuration/TypoScript/Page/Export.ts">
config {
doctype = html5
@@ -9,11 +9,11 @@
<div class="row">
<div class="col-xs-12">
<h2>Gesamtexport XML</h2>
<f:link.action action="xml" arguments="{reseller: reseller}" target="_blank">Export XML</f:link.action>
<f:link.action arguments="{reseller: reseller}" pageType="1972" target="_blank">Export XML</f:link.action>
<h2>Einzelexport Excel</h2>
<ul>
<f:for each="{products}" as="product">
<li><f:link.action action="excel" arguments="{product: product, reseller: reseller}">Export XLS: {product.name}</f:link.action></li>
<li><f:link.action arguments="{product: product, reseller: reseller}" pageType="1984">Export XLS: {product.name}</f:link.action></li>
</f:for>
</ul>
</div>
+12 -1
View File
@@ -24,6 +24,11 @@ $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = [
'type' => 1848,
],
],
'xml' => [
'keyValues' => [
'type' => 1972,
]
]
],
],
'preVars' => [],
@@ -145,7 +150,11 @@ $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = [
],
],
[
'GETvar' => 'tx_epproducts_reseller[action]',
'GETvar' => 'type',
'valueMap' => [
'xml' => 1972,
'excel' => 1984,
],
],
[
'GETvar' => 'tx_epproducts_reseller[product]',
@@ -161,7 +170,9 @@ $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = [
1446 => 'team',
987 => 'events_contactform',
1300 => 'events_activity',
1444 => 'reseller',
1448 => 'reseller',
1483 => 'reseller',
'newsDetailConfiguration' => [
[
'GETvar' => 'tx_news_pi1[news]',