Browse code

Add explanation for category config

Benjamin Roth authored on12/12/2019 11:00:51
Showing3 changed files
... ...
@@ -57,6 +57,7 @@ $GLOBALS['TL_DCA']['tl_page']['fields']['cookieconsent_categories_custom'] = arr
57 57
   'label' => &$GLOBALS['TL_LANG']['tl_page']['cookieconsent_categories_custom'],
58 58
   'exclude' => true,
59 59
   'inputType' => 'textarea',
60
+  'explanation' => 'cookieconsent_categories',
60 61
   'eval' => array('allowHtml'=>true, 'class'=>'monospace', 'rte'=>'ace|javascript', 'tl_class'=>'clr'),
61 62
   'sql'=> "mediumtext NULL"
62 63
 );
63 64
new file mode 100644
... ...
@@ -0,0 +1,34 @@
1
+<?php
2
+
3
+/*
4
+* This file is part of eSales Media cookieconsent module
5
+*
6
+* (c) Benjamin Roth
7
+*
8
+* @license https://www.gnu.org/licenses/gpl-3.0.html GPL
9
+*/
10
+
11
+/**
12
+ * Explanations
13
+ */
14
+$GLOBALS['TL_LANG']['XPL']['cookieconsent_categories'][] = array
15
+(
16
+  "Beispielkonfiguration für eine Kategorie",
17
+  "ads: {
18
+  needed: false,
19
+    wanted: false,
20
+    checked: false,
21
+    language: {
22
+    locale: {
23
+      de: {
24
+        name: 'Werbung und Marketing',
25
+				description: 'Diese Cookies erlauben uns Werbung zielgerichtet für Sie azsuliefern. Dadurch sehen Sie ggf. für Sie relevantere Werbeanzeigen.',
26
+      },
27
+      en: {
28
+        name: 'Ads and Marketing',
29
+				description: 'These cookies allow us to deliver targeted advertising to you. This allows you to see advertisements that may be more relevant to you.',
30
+      }
31
+    }
32
+  }
33
+}"
34
+);
0 35
new file mode 100644
... ...
@@ -0,0 +1,34 @@
1
+<?php
2
+
3
+/*
4
+* This file is part of eSales Media cookieconsent module
5
+*
6
+* (c) Benjamin Roth
7
+*
8
+* @license https://www.gnu.org/licenses/gpl-3.0.html GPL
9
+*/
10
+
11
+/**
12
+ * Explanations
13
+ */
14
+$GLOBALS['TL_LANG']['XPL']['cookieconsent_categories'][] = array
15
+(
16
+  "Example configuration for a category",
17
+  "ads: {
18
+  needed: false,
19
+    wanted: false,
20
+    checked: false,
21
+    language: {
22
+    locale: {
23
+      de: {
24
+        name: 'Werbung und Marketing',
25
+				description: 'Diese Cookies erlauben uns Werbung zielgerichtet für Sie azsuliefern. Dadurch sehen Sie ggf. für Sie relevantere Werbeanzeigen.',
26
+      },
27
+      en: {
28
+        name: 'Ads and Marketing',
29
+				description: 'These cookies allow us to deliver targeted advertising to you. This allows you to see advertisements that may be more relevant to you.',
30
+      }
31
+    }
32
+  }
33
+}"
34
+);