12
12
<label >Security</label >
13
13
</tab >
14
14
<section id =" magento_securitytxt_securitytxt" translate =" label" type =" text" sortOrder =" 520" showInDefault =" 1"
15
- showInWebsite =" 1" showInStore =" 1 " >
15
+ showInWebsite =" 1" showInStore =" 0 " >
16
16
<class >separator-top</class >
17
17
<label >Security.txt</label >
18
18
<tab >security</tab >
19
19
<resource >Magento_Securitytxt::config</resource >
20
20
<group id =" general" translate =" label" type =" text" sortOrder =" 10" showInDefault =" 1" showInWebsite =" 1"
21
- showInStore =" 1 " >
21
+ showInStore =" 0 " >
22
22
<label >General</label >
23
23
<field id =" enabled" translate =" label" type =" select" sortOrder =" 10" showInDefault =" 1" showInWebsite =" 1"
24
- showInStore =" 1 " >
24
+ showInStore =" 0 " >
25
25
<label >Enable</label >
26
26
<source_model >Magento\Config\Model\Config\Source\Yesno</source_model >
27
27
</field >
28
28
</group >
29
29
<group id =" contact_information" translate =" label" type =" text" sortOrder =" 10" showInDefault =" 1"
30
30
showInWebsite =" 1"
31
- showInStore =" 1 " >
31
+ showInStore =" 0 " >
32
32
<label >Contact Information</label >
33
33
<field id =" email" translate =" label comment" type =" text" sortOrder =" 20" showInDefault =" 1"
34
- showInWebsite =" 1" showInStore =" 1 " >
34
+ showInWebsite =" 1" showInStore =" 0 " >
35
35
<label >Email</label >
36
36
<validate >validate-email</validate >
37
- <backend_model >Magento\Securitytxt\Model\Config\Backend\Validate</backend_model >
38
37
</field >
39
38
<field id =" phone" translate =" label comment" type =" text" sortOrder =" 20" showInDefault =" 1"
40
- showInWebsite =" 1" showInStore =" 1 " >
39
+ showInWebsite =" 1" showInStore =" 0 " >
41
40
<label >Phone</label >
42
41
</field >
43
42
<field id =" contact_page" translate =" label comment" type =" text" sortOrder =" 20" showInDefault =" 1"
44
- showInWebsite =" 1" showInStore =" 1 " >
43
+ showInWebsite =" 1" showInStore =" 0 " >
45
44
<label >Contact Page</label >
46
45
<validate >validate-url validate-no-html-tags</validate >
46
+ <backend_model >Magento\Securitytxt\Model\Config\Backend\SecureUrl</backend_model >
47
47
<comment >Example: https://example.com/security-contact.html</comment >
48
48
</field >
49
+ <depends >
50
+ <field id =" magento_securitytxt_securitytxt/general/enabled" >1</field >
51
+ </depends >
49
52
</group >
50
53
<group id =" other_information" translate =" label" type =" text" sortOrder =" 10" showInDefault =" 1"
51
54
showInWebsite =" 1"
52
- showInStore =" 1 " >
55
+ showInStore =" 0 " >
53
56
<label >Other Information</label >
54
57
<field id =" encryption" translate =" label comment" type =" text" sortOrder =" 40" showInDefault =" 1"
55
- showInWebsite =" 1" showInStore =" 1 " >
58
+ showInWebsite =" 1" showInStore =" 0 " >
56
59
<label >Encryption</label >
57
60
<validate >validate-url validate-no-html-tags</validate >
58
61
<comment >Example: https://example.com/pgp-key.txt</comment >
62
+ <backend_model >Magento\Securitytxt\Model\Config\Backend\SecureUrl</backend_model >
59
63
</field >
60
64
<field id =" acknowledgements" translate =" label comment" type =" text" sortOrder =" 50" showInDefault =" 1"
61
- showInWebsite =" 1" showInStore =" 1 " >
65
+ showInWebsite =" 1" showInStore =" 0 " >
62
66
<label >Acknowledgements</label >
63
67
<validate >validate-url validate-no-html-tags</validate >
64
68
<comment >Example: https://example.com/hall-of-fame.html</comment >
69
+ <backend_model >Magento\Securitytxt\Model\Config\Backend\SecureUrl</backend_model >
65
70
</field >
66
71
<field id =" preferred_languages" translate =" label comment" type =" text" sortOrder =" 50" showInDefault =" 1"
67
- showInWebsite =" 1" showInStore =" 1 " >
72
+ showInWebsite =" 1" showInStore =" 0 " >
68
73
<label >Preferred-Languages</label >
69
74
<validate >validate-text validate-no-html-tags</validate >
70
75
<comment >Example: en, es, hi, de, fr</comment >
71
76
</field >
72
77
<field id =" hiring" translate =" label comment" type =" text" sortOrder =" 50" showInDefault =" 1"
73
- showInWebsite =" 1" showInStore =" 1 " >
78
+ showInWebsite =" 1" showInStore =" 0 " >
74
79
<label >Hiring</label >
75
80
<validate >validate-url validate-no-html-tags</validate >
76
81
<comment >Example: https://example.com/jobs.html</comment >
82
+ <backend_model >Magento\Securitytxt\Model\Config\Backend\SecureUrl</backend_model >
77
83
</field >
78
84
<field id =" policy" translate =" label comment" type =" text" sortOrder =" 60" showInDefault =" 1"
79
- showInWebsite =" 1" showInStore =" 1 " >
85
+ showInWebsite =" 1" showInStore =" 0 " >
80
86
<label >Policy</label >
81
87
<validate >validate-url validate-no-html-tags</validate >
82
88
<comment >Example: https://example.com/security-policy.html</comment >
89
+ <backend_model >Magento\Securitytxt\Model\Config\Backend\SecureUrl</backend_model >
83
90
</field >
84
91
<field id =" signature_text" translate =" label comment" type =" textarea" sortOrder =" 80" showInDefault =" 1"
85
- showInWebsite =" 1" showInStore =" 1 " >
92
+ showInWebsite =" 1" showInStore =" 0 " >
86
93
<label >Signature</label >
87
94
<validate >validate-no-html-tags</validate >
88
95
<comment model =" Magento\Securitytxt\Model\Config\Signature" />
89
96
</field >
97
+ <depends >
98
+ <field id =" magento_securitytxt_securitytxt/general/enabled" >1</field >
99
+ </depends >
90
100
</group >
91
101
</section >
92
102
</system >
93
- </config >
103
+ </config >
0 commit comments