forked from magedeveloper/dataviewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
163 lines (151 loc) · 5.17 KB
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<?php
if (!defined("TYPO3_MODE")) {
die ("Access denied.");
}
/***********************************
* New Content Element - Wizard
***********************************/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig("<INCLUDE_TYPOSCRIPT: source=\"FILE:EXT:".$_EXTKEY."/Configuration/PageTS/modWizards.ts\">");
/***********************************
* Change sorting for Records
***********************************/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig("mod.web_list.tableDisplayOrder.tx_dataviewer_domain_model_record.before = pages, fe_groups, fe_users, tx_dataviewer_domain_model_datatype");
/***********************************
* Register Cache for the plugins
***********************************/
if (!is_array($TYPO3_CONF_VARS["SYS"]["caching"]["cacheConfigurations"]["dataviewer_cache"]))
{
$TYPO3_CONF_VARS["SYS"]["caching"]["cacheConfigurations"]["dataviewer_cache"] = array();
$TYPO3_CONF_VARS["SYS"]["caching"]["cacheConfigurations"]["dataviewer_cache"]["frontend"] = \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class;
$TYPO3_CONF_VARS["SYS"]["caching"]["cacheConfigurations"]["dataviewer_cache"]["backend"] = \TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend::class;
$TYPO3_CONF_VARS["SYS"]["caching"]["cacheConfigurations"]["dataviewer_cache"]["options"]["compression"] = 1;
}
/***********************************
* Dataviewer Plugins
* =================================
*
* #1 - Display Record(s)
* ---------------------------------
* This plugin adds the possibility
* to integrate a record, multiple
* records or a record part to your
* page.
*
* This plugin is for
*
* - Listing Records
* - Viewing Record Details
* - Viewing Record Details dynamically
* - Showing a part from a record
* - Listening for Ajax Requests
*
* #2 - Search Records
* ---------------------------------
* This plugin can search through
* selected records. It adds a
* searchbox to your site with
* configurable search options.
*
* #3 - Letter Selection
* ---------------------------------
* Adds a letter selection to your
* site, to select records with
* their starting letter.
*
* #4 - Sorting
* ---------------------------------
* Adds a sort form to your site,
* which enabled you to sort the
* displayed records by given
* sorting elements.
*
* #5 - Filtering
* ---------------------------------
* Adds a filter form to your site
* to filter availble records.
*
* #6 - Selecting
* ---------------------------------
* Adds a selection form to your
* site for selecting records.
*
* #7 - Form
* ---------------------------------
* Adds a form to your site with a
* customizable template. The
* form, that will be included is
* for creating new records in the
* backend.
*
* #8 - Pager
* ---------------------------------
* Adds a page to your site for
* paging the records of the
* connected records plugin.
*
*
***********************************/
// #1 - Display Records
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'MageDeveloper.'.$_EXTKEY,
"Record",
["Record" => "index, list, detail, dynamicDetail, part, ajaxRequest, ajaxResponse"], // Cached
["Record" => "index, list"], // UnCached
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_PLUGIN
);
// #2 - Search Records
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'MageDeveloper.'.$_EXTKEY,
"Search",
["Search" => "index, search, reset"], // Cached
["Search" => "index, search, reset"], // UnCached
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_PLUGIN
);
// #3 - Letter Selection
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'MageDeveloper.'.$_EXTKEY,
"Letter",
["Letter" => "index, letter"], // Cached
["Letter" => "index, letter"], // UnCached
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_PLUGIN
);
// #4 - Sorting
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'MageDeveloper.'.$_EXTKEY,
"Sort",
["Sort" => "index, sort"], // Cached
["Sort" => "index, sort"], // UnCached
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_PLUGIN
);
// #5 - Filtering
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'MageDeveloper.'.$_EXTKEY,
"Filter",
["Filter" => "index, add, remove, reset"], // Cached
["Filter" => "index, add, remove, reset"], // UnCached
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_PLUGIN
);
// #6 - Selecting
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'MageDeveloper.'.$_EXTKEY,
"Select",
["Select" => "index, select"], // Cached
["Select" => "index, select"], // UnCached
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_PLUGIN
);
// #7 - Form
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'MageDeveloper.'.$_EXTKEY,
"Form",
["Form" => "index, post, delete, error"], // Cached
["Form" => "index, post, delete, error"], // UnCached
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_PLUGIN
);
// #8 - Pager
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'MageDeveloper.'.$_EXTKEY,
"Pager",
["Pager" => "index, page"], // Cached
["Pager" => "index, page"], // UnCached
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_PLUGIN
);