... | ... |
@@ -8,6 +8,7 @@ |
8 | 8 |
* @license LGPL-3.0-or-later |
9 | 9 |
*/ |
10 | 10 |
|
11 |
+use vonRotenberg\MemberfilesBundle\Model\MemberfilesConfigModel; |
|
11 | 12 |
use vonRotenberg\MemberfilesBundle\Model\SecureDownloadsModel; |
12 | 13 |
|
13 | 14 |
/** |
... | ... |
@@ -52,3 +53,4 @@ $GLOBALS['TL_PERMISSIONS'][] = 'sec_dl_access'; |
52 | 53 |
*/ |
53 | 54 |
|
54 | 55 |
$GLOBALS['TL_MODELS']['tl_member_secureDownloads'] = SecureDownloadsModel::class; |
56 |
+$GLOBALS['TL_MODELS']['tl_memberfiles_config'] = MemberfilesConfigModel::class; |
... | ... |
@@ -13,6 +13,9 @@ use vonRotenberg\MemberfilesBundle\Model\SecureDownloadsModel; |
13 | 13 |
/** |
14 | 14 |
* Backend modules |
15 | 15 |
*/ |
16 |
+$GLOBALS['BE_MOD']['system']['memberfiles'] = [ |
|
17 |
+ 'tables' => ['tl_memberfiles_config'] |
|
18 |
+]; |
|
16 | 19 |
$GLOBALS['BE_MOD']['accounts']['member']['tables'][] = 'tl_member_secureDownloads'; |
17 | 20 |
|
18 | 21 |
/** |
... | ... |
@@ -11,6 +11,11 @@ |
11 | 11 |
use vonRotenberg\MemberfilesBundle\Model\SecureDownloadsModel; |
12 | 12 |
|
13 | 13 |
/** |
14 |
+ * Backend modules |
|
15 |
+ */ |
|
16 |
+$GLOBALS['BE_MOD']['accounts']['member']['tables'][] = 'tl_member_secureDownloads'; |
|
17 |
+ |
|
18 |
+/** |
|
14 | 19 |
* Notification types |
15 | 20 |
*/ |
16 | 21 |
$GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['contao']['secDownloads_submitted'] = array |
... | ... |
@@ -10,4 +10,37 @@ |
10 | 10 |
|
11 | 11 |
use vonRotenberg\MemberfilesBundle\Model\SecureDownloadsModel; |
12 | 12 |
|
13 |
+/** |
|
14 |
+ * Notification types |
|
15 |
+ */ |
|
16 |
+$GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['contao']['secDownloads_submitted'] = array |
|
17 |
+( |
|
18 |
+ 'recipients' => array |
|
19 |
+ ( |
|
20 |
+ 'member_email' // The email address of the recipient |
|
21 |
+ ), |
|
22 |
+ 'email_text' => array |
|
23 |
+ ( |
|
24 |
+ 'member_firstname', // The firstname of the recipient |
|
25 |
+ 'member_lastname', // The lastname of the recipient |
|
26 |
+ 'downloads' // The names of all new files |
|
27 |
+ ), |
|
28 |
+ 'email_html' => array |
|
29 |
+ ( |
|
30 |
+ 'member_firstname', // The firstname of the recipient |
|
31 |
+ 'member_lastname', // The lastname of the recipient |
|
32 |
+ 'downloads_html', // The names of all new files |
|
33 |
+ ) |
|
34 |
+); |
|
35 |
+ |
|
36 |
+/** |
|
37 |
+ * Permissions |
|
38 |
+ */ |
|
39 |
+ |
|
40 |
+$GLOBALS['TL_PERMISSIONS'][] = 'sec_dl_access'; |
|
41 |
+ |
|
42 |
+/** |
|
43 |
+ * Models |
|
44 |
+ */ |
|
45 |
+ |
|
13 | 46 |
$GLOBALS['TL_MODELS']['tl_member_secureDownloads'] = SecureDownloadsModel::class; |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,13 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+/* |
|
4 |
+ * This file is part of Contao. |
|
5 |
+ * |
|
6 |
+ * (c) Leo Feyer |
|
7 |
+ * |
|
8 |
+ * @license LGPL-3.0-or-later |
|
9 |
+ */ |
|
10 |
+ |
|
11 |
+use vonRotenberg\MemberfilesBundle\Model\SecureDownloadsModel; |
|
12 |
+ |
|
13 |
+$GLOBALS['TL_MODELS']['tl_member_secureDownloads'] = SecureDownloadsModel::class; |