Browse code

Fix city filter regarding managedProperty linked assets

Benjamin Roth authored on01/10/2024 11:59:29
Showing2 changed files
... ...
@@ -19,7 +19,8 @@
19 19
     "symfony/config": "^6.4",
20 20
     "symfony/dependency-injection": "^6.4",
21 21
     "symfony/http-kernel": "^6.4",
22
-    "vonrotenberg/htmx-bundle": "^1.0"
22
+    "vonrotenberg/htmx-bundle": "^1.0",
23
+    "con4gis/maps": "^9.0"
23 24
   },
24 25
   "require-dev": {
25 26
     "bamarni/composer-bin-plugin": "^1.5",
... ...
@@ -87,7 +87,7 @@ $GLOBALS['TL_DCA']['tl_vr_re_managedProperties'] = array
87 87
     'palettes' => array
88 88
     (
89 89
         '__selector__'                => array(),
90
-        'default'                     => '{data_legend},address,postal,city,gallerySRC;{description_legend},description;{map_legend},mapIframe;{publish_legend},published,start,stop',
90
+        'default'                     => '{data_legend},address,postal,city,gallerySRC;{description_legend},description;{map_legend},mapIframe,geox,geoy;{publish_legend},published,start,stop',
91 91
     ),
92 92
 
93 93
     // Subpalettes
... ...
@@ -157,6 +157,22 @@ $GLOBALS['TL_DCA']['tl_vr_re_managedProperties'] = array
157 157
             'explanation'             => 'insertTags',
158 158
             'sql'                     => "mediumtext NULL"
159 159
         ),
160
+        'geox' => array
161
+        (
162
+            'exclude'                 => true,
163
+            'inputType'               => 'c4g_text',
164
+            'eval'                    => ['mandatory'=>false, 'maxlength'=>20, 'tl_class'=>'w50 wizard'],
165
+            'wizard'                  => [['\con4gis\MapsBundle\Classes\GeoPicker', 'getPickerLink']],
166
+            'sql'                     => "varchar(20) NOT NULL default ''"
167
+        ),
168
+        'geoy' => array
169
+        (
170
+            'exclude'                 => true,
171
+            'inputType'               => 'c4g_text',
172
+            'eval'                    => ['mandatory'=>false, 'maxlength'=>20, 'tl_class'=>'w50 wizard'],
173
+            'wizard'                  => [['\con4gis\MapsBundle\Classes\GeoPicker', 'getPickerLink']],
174
+            'sql'                     => "varchar(20) NOT NULL default ''"
175
+        ),
160 176
         'published'             => array
161 177
         (
162 178
             'exclude'   => true,