File tree 3 files changed +6
-4
lines changed
core/components/collections
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 5
5
* @var array $options
6
6
*/
7
7
8
+ use MODX \Revolution \modDocument ;
9
+
8
10
switch ($ options [xPDOTransport::PACKAGE_ACTION ]) {
9
11
case xPDOTransport::ACTION_INSTALL :
10
12
25
27
$ template ->set ('sort_field ' , 'publishedon ' );
26
28
$ template ->set ('sort_dir ' , 'desc ' );
27
29
$ template ->set ('child_template ' , null );
28
- $ template ->set ('child_resource_type ' , ' modDocument ' );
30
+ $ template ->set ('child_resource_type ' , modDocument::class );
29
31
$ template ->set ('resource_type_selection ' , true );
30
32
31
33
$ columns = [];
Original file line number Diff line number Diff line change 28
28
<field key =" sort_dir" dbtype =" varchar" precision =" 4" phptype =" string" null =" false" default =" asc" />
29
29
<field key =" sort_type" dbtype =" varchar" precision =" 64" phptype =" string" null =" true" />
30
30
<field key =" child_template" dbtype =" int" attributes =" unsigned" precision =" 10" phptype =" integer" null =" true" />
31
- <field key =" child_resource_type" dbtype =" varchar" precision =" 100" phptype =" string" null =" false" default =" modDocument" />
31
+ <field key =" child_resource_type" dbtype =" varchar" precision =" 100" phptype =" string" null =" false" default =" MODX\Revolution\ modDocument" />
32
32
<field key =" resource_type_selection" dbtype =" int" precision =" 1" phptype =" boolean" null =" false" default =" 1" />
33
33
<field key =" tab_label" dbtype =" varchar" precision =" 255" phptype =" string" null =" false" default =" collections.children" />
34
34
<field key =" button_label" dbtype =" varchar" precision =" 255" phptype =" string" null =" false" default =" collections.children.create" />
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class CollectionTemplate extends \Collections\Model\CollectionTemplate
27
27
'sort_dir ' => 'asc ' ,
28
28
'sort_type ' => NULL ,
29
29
'child_template ' => NULL ,
30
- 'child_resource_type ' => 'modDocument ' ,
30
+ 'child_resource_type ' => 'MODX \\ Revolution \\ modDocument ' ,
31
31
'resource_type_selection ' => 1 ,
32
32
'tab_label ' => 'collections.children ' ,
33
33
'button_label ' => 'collections.children.create ' ,
@@ -145,7 +145,7 @@ class CollectionTemplate extends \Collections\Model\CollectionTemplate
145
145
'precision ' => '100 ' ,
146
146
'phptype ' => 'string ' ,
147
147
'null ' => false ,
148
- 'default ' => 'modDocument ' ,
148
+ 'default ' => 'MODX \\ Revolution \\ modDocument ' ,
149
149
),
150
150
'resource_type_selection ' =>
151
151
array (
You can’t perform that action at this time.
0 commit comments