config.xml
3.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?xml version="1.0" encoding="utf-8"?>
<config>
<fieldset
name="component"
label="COM_MEDIA_FIELDSET_OPTIONS_LABEL">
<field
name="upload_extensions"
type="text"
label="COM_MEDIA_FIELD_LEGAL_EXTENSIONS_LABEL"
description="COM_MEDIA_FIELD_LEGAL_EXTENSIONS_DESC"
size="50"
default="bmp,csv,doc,gif,ico,jpg,jpeg,odg,odp,ods,odt,pdf,png,ppt,txt,xcf,xls,BMP,CSV,DOC,GIF,ICO,JPG,JPEG,ODG,ODP,ODS,ODT,PDF,PNG,PPT,TXT,XCF,XLS"
/>
<field
name="upload_maxsize"
type="number"
label="COM_MEDIA_FIELD_MAXIMUM_SIZE_LABEL"
description="COM_MEDIA_FIELD_MAXIMUM_SIZE_DESC"
validate="number"
min="0"
size="50"
default="10"
/>
<field
name="spacer1"
type="spacer"
label="COM_MEDIA_FOLDERS_PATH_LABEL"
class="text"
/>
<field
name="file_path"
type="text"
label="COM_MEDIA_FIELD_PATH_FILE_FOLDER_LABEL"
description="COM_MEDIA_FIELD_PATH_FILE_FOLDER_DESC"
size="50"
default="images"
/>
<field
name="image_path"
type="text"
label="COM_MEDIA_FIELD_PATH_IMAGE_FOLDER_LABEL"
description="COM_MEDIA_FIELD_PATH_IMAGE_FOLDER_DESC"
size="50"
default="images"
/>
<field
name="restrict_uploads"
type="radio"
label="COM_MEDIA_FIELD_RESTRICT_UPLOADS_LABEL"
description="COM_MEDIA_FIELD_RESTRICT_UPLOADS_DESC"
class="btn-group btn-group-yesno"
default="1"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field
name="check_mime"
type="radio"
label="COM_MEDIA_FIELD_CHECK_MIME_LABEL"
description="COM_MEDIA_FIELD_CHECK_MIME_DESC"
class="btn-group btn-group-yesno"
default="1"
showon="restrict_uploads:1"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field
name="image_extensions"
type="text"
label="COM_MEDIA_FIELD_LEGAL_IMAGE_EXTENSIONS_LABEL"
description="COM_MEDIA_FIELD_LEGAL_IMAGE_EXTENSIONS_DESC"
size="50"
default="bmp,gif,jpg,png"
showon="restrict_uploads:1"
/>
<field
name="ignore_extensions"
type="text"
label="COM_MEDIA_FIELD_IGNORED_EXTENSIONS_LABEL"
description="COM_MEDIA_FIELD_IGNORED_EXTENSIONS_DESC"
size="50"
/>
<field
name="upload_mime"
type="text"
label="COM_MEDIA_FIELD_LEGAL_MIME_TYPES_LABEL"
description="COM_MEDIA_FIELD_LEGAL_MIME_TYPES_DESC"
size="50"
default="image/jpeg,image/gif,image/png,image/bmp,application/msword,application/excel,application/pdf,application/powerpoint,text/plain,application/x-zip"
showon="restrict_uploads:1"
/>
<field
name="upload_mime_illegal"
type="text"
label="COM_MEDIA_FIELD_ILLEGAL_MIME_TYPES_LABEL"
description="COM_MEDIA_FIELD_ILLEGAL_MIME_TYPES_DESC"
size="50"
default="text/html"
showon="restrict_uploads:1"
/>
</fieldset>
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"
>
<field
name="rules"
type="rules"
label="JCONFIG_PERMISSIONS_LABEL"
filter="rules"
validate="rules"
component="com_media"
section="component"
/>
</fieldset>
</config>