... | ... |
@@ -8,6 +8,7 @@ |
8 | 8 |
* @license commercial |
9 | 9 |
*/ |
10 | 10 |
|
11 |
+use vonRotenberg\RealEstateListingBundle\Model\ManagedPropertyModel; |
|
11 | 12 |
use vonRotenberg\RealEstateListingBundle\Model\RealEstateAssetsModel; |
12 | 13 |
use Contao\System; |
13 | 14 |
use Contao\ArrayUtil; |
... | ... |
@@ -17,6 +18,9 @@ ArrayUtil::arrayInsert($GLOBALS['BE_MOD'], 1, [ |
17 | 18 |
'vr_real_estate' => [ |
18 | 19 |
'vr_re_categories' => [ |
19 | 20 |
'tables' => array('tl_vr_real_estate_categories','tl_vr_real_estate_assets') |
21 |
+ ], |
|
22 |
+ 'managed_properties' => [ |
|
23 |
+ 'tables' => ['tl_vr_re_managedProperties'], |
|
20 | 24 |
] |
21 | 25 |
] |
22 | 26 |
]); |
... | ... |
@@ -31,5 +35,6 @@ if ($requestStack->getCurrentRequest() !== null && $scopeMatcher->isBackendReque |
31 | 35 |
|
32 | 36 |
$GLOBALS['TL_MODELS']['tl_vr_real_estate_assets'] = RealEstateAssetsModel::class; |
33 | 37 |
$GLOBALS['TL_MODELS']['tl_vr_real_estate_categories'] = RealEstateCategoriesModel::class; |
38 |
+$GLOBALS['TL_MODELS']['tl_vr_re_managedProperties'] = ManagedPropertyModel::class; |
|
34 | 39 |
|
35 | 40 |
|
... | ... |
@@ -11,6 +11,7 @@ |
11 | 11 |
use vonRotenberg\RealEstateListingBundle\Model\RealEstateAssetsModel; |
12 | 12 |
use Contao\System; |
13 | 13 |
use Contao\ArrayUtil; |
14 |
+use vonRotenberg\RealEstateListingBundle\Model\RealEstateCategoriesModel; |
|
14 | 15 |
|
15 | 16 |
ArrayUtil::arrayInsert($GLOBALS['BE_MOD'], 1, [ |
16 | 17 |
'vr_real_estate' => [ |
... | ... |
@@ -29,5 +30,6 @@ if ($requestStack->getCurrentRequest() !== null && $scopeMatcher->isBackendReque |
29 | 30 |
} |
30 | 31 |
|
31 | 32 |
$GLOBALS['TL_MODELS']['tl_vr_real_estate_assets'] = RealEstateAssetsModel::class; |
33 |
+$GLOBALS['TL_MODELS']['tl_vr_real_estate_categories'] = RealEstateCategoriesModel::class; |
|
32 | 34 |
|
33 | 35 |
|
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,33 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+/** |
|
4 |
+ * OBG Customizations |
|
5 |
+ * |
|
6 |
+ * Copyright (c) 2021 vonRotenberg |
|
7 |
+ * |
|
8 |
+ * @license commercial |
|
9 |
+ */ |
|
10 |
+ |
|
11 |
+use vonRotenberg\RealEstateListingBundle\Model\RealEstateAssetsModel; |
|
12 |
+use Contao\System; |
|
13 |
+use Contao\ArrayUtil; |
|
14 |
+ |
|
15 |
+ArrayUtil::arrayInsert($GLOBALS['BE_MOD'], 1, [ |
|
16 |
+ 'vr_real_estate' => [ |
|
17 |
+ 'vr_re_categories' => [ |
|
18 |
+ 'tables' => array('tl_vr_real_estate_categories','tl_vr_real_estate_assets') |
|
19 |
+ ] |
|
20 |
+ ] |
|
21 |
+]); |
|
22 |
+ |
|
23 |
+// Style sheet |
|
24 |
+$scopeMatcher = System::getContainer()->get('contao.routing.scope_matcher'); |
|
25 |
+$requestStack = System::getContainer()->get('request_stack'); |
|
26 |
+if ($requestStack->getCurrentRequest() !== null && $scopeMatcher->isBackendRequest($requestStack->getCurrentRequest())) |
|
27 |
+{ |
|
28 |
+ $GLOBALS['TL_CSS'][] = 'bundles/vonrotenbergrealestatelisting/css/sr_vr_real_estate.css|static'; |
|
29 |
+} |
|
30 |
+ |
|
31 |
+$GLOBALS['TL_MODELS']['tl_vr_real_estate_assets'] = RealEstateAssetsModel::class; |
|
32 |
+ |
|
33 |
+ |