Skip to content

Commit 6cd49ef

Browse files
committed
Settings moved to area
1 parent 447deaa commit 6cd49ef

3 files changed

Lines changed: 19 additions & 7 deletions

File tree

_build/elements/settings.php

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,42 @@
33
return [
44
'mediasource' => array(
55
'xtype' => 'modx-combo-source',
6-
'value' => 1
6+
'value' => 1,
7+
'area' => 'fileman_main',
78
),
89
'path' => array(
910
'xtype' => 'textfield',
10-
'value' => 'files/{resource}/'
11+
'value' => 'files/{resource}/',
12+
'area' => 'fileman_main',
1113
),
1214
'templates' => array(
1315
'xtype' => 'textfield',
14-
'value' => ''
16+
'value' => '',
17+
'area' => 'fileman_main',
1518
),
1619
'calchash' => array(
1720
'xtype' => 'combo-boolean',
18-
'value' => false
21+
'value' => false,
22+
'area' => 'fileman_main',
1923
),
2024
'private' => array(
2125
'xtype' => 'combo-boolean',
22-
'value' => false
26+
'value' => false,
27+
'area' => 'fileman_main',
2328
),
2429
'download' => array(
2530
'xtype' => 'combo-boolean',
26-
'value' => true
31+
'value' => true,
32+
'area' => 'fileman_main',
2733
),
2834
'auto_title' => array(
2935
'xtype' => 'combo-boolean',
30-
'value' => true
36+
'value' => true,
37+
'area' => 'fileman_main',
3138
),
3239
'grid_fields' => array(
3340
'xtype' => 'textfield',
3441
'value' => 'id,name,title,description,group,private,download',
42+
'area' => 'fileman_main',
3543
),
3644
];

core/components/fileman/lexicon/en/setting.inc.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
$_lang['area_fileman_main'] = 'Main';
4+
35
$_lang['setting_fileman_mediasource'] = 'Media source';
46
$_lang['setting_fileman_mediasource_desc'] = 'Media source for files.';
57

core/components/fileman/lexicon/ru/setting.inc.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
$_lang['area_fileman_main'] = 'Основные';
4+
35
$_lang['setting_fileman_mediasource'] = 'Медиа источник';
46
$_lang['setting_fileman_mediasource_desc'] = 'Медиа источник для сохранения файлов';
57

0 commit comments

Comments
 (0)