Browse code

Add postal to assets DCA

Benjamin Roth authored on27/02/2024 13:23:37
Showing2 changed files
... ...
@@ -97,7 +97,7 @@ $GLOBALS['TL_DCA']['tl_vr_real_estate_assets'] = array
97 97
   'palettes' => array
98 98
   (
99 99
     '__selector__'                => array('availability'),
100
-    'default'                     => '{title_legend},title,assetNo,address,floor,city;{availability_legend},availability;{misc_legend},description;{basic_data_legend},livingSpace,numberOfRooms,rent,coldRent,advanceOperatingCosts,constructionYear,cooperativeShares;{features_legend},features,heatingType,energyPassType,energyConsumption;{images_legend},gallerySRC,floorPlansSRC;{publish_legend},published,start,stop',
100
+    'default'                     => '{title_legend},title,assetNo,address,floor,postal,city;{availability_legend},availability;{misc_legend},description;{basic_data_legend},livingSpace,numberOfRooms,rent,coldRent,advanceOperatingCosts,constructionYear,cooperativeShares;{features_legend},features,heatingType,energyPassType,energyConsumption;{images_legend},gallerySRC,floorPlansSRC;{publish_legend},published,start,stop',
101 101
   ),
102 102
 
103 103
   // Subpalettes
... ...
@@ -130,6 +130,13 @@ $GLOBALS['TL_DCA']['tl_vr_real_estate_assets'] = array
130 130
       'eval'                    => array('mandatory'=>true, 'maxlength'=>255, 'tl_class'=>'w50'),
131 131
       'sql'                     => "varchar(255) NOT NULL default ''"
132 132
     ),
133
+    'postal' => array
134
+    (
135
+        'exclude'                 => true,
136
+        'inputType'               => 'text',
137
+        'eval'                    => array('mandatory'=>true, 'rgxp'=>'natural', 'maxlength'=>5, 'tl_class'=>'w50'),
138
+        'sql'                     => "varchar(5) NOT NULL default ''"
139
+    ),
133 140
     'city' => array
134 141
     (
135 142
       'exclude'                 => true,
... ...
@@ -7,6 +7,12 @@
7 7
       <trans-unit id="tl_vr_real_estate_assets.title.1">
8 8
         <source>Bezeichnung des Objekts. (z.B. 3 Zimmer-Wohnung)</source>
9 9
       </trans-unit>
10
+      <trans-unit id="tl_vr_real_estate_assets.postal.0">
11
+        <source>Postleitzahl</source>
12
+      </trans-unit>
13
+      <trans-unit id="tl_vr_real_estate_assets.postal.1">
14
+        <source>Die Postleitzahl des Ortes.</source>
15
+      </trans-unit>
10 16
       <trans-unit id="tl_vr_real_estate_assets.city.0">
11 17
         <source>Ort</source>
12 18
       </trans-unit>
... ...
@@ -190,4 +196,4 @@
190 196
 
191 197
     </body>
192 198
   </file>
193
-</xliff>
194 199
\ No newline at end of file
200
+</xliff>