-
Notifications
You must be signed in to change notification settings - Fork 2
/
helloworld.xml
155 lines (142 loc) · 5.45 KB
/
helloworld.xml
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" version="3.0" method="upgrade" group="content">
<!-- Meta Data -->
<name>PLG_CONTENT_HELLOWORLD_NAME</name><!-- Translating this is optional -->
<creationDate>2019-11-17</creationDate>
<author>QuantumWarp</author>
<authorEmail>[email protected]</authorEmail>
<authorUrl>quantumwarp.com</authorUrl>
<copyright>Copyright (C) 2019 QuantumWarp. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<version>1.0.0</version>
<description>PLG_CONTENT_HELLOWORLD_DESCRIPTION</description><!-- Translating this is optional -->
<namespace>QuantumWarp\Plugin\Content\HelloWorld</namespace><!-- Joomla 4.0 only -->
<changelogurl>https://quantumwarp.com/updates/plg_content_helloworld/changelog.xml</changelogurl><!-- Joomla 4.0 only -->
<dlid prefix="dlid=" suffix="&dummy=my.zip"/><!-- Joomla 4.0 only -->
<!--<help key="JHELP_EXTENSIONS_MODULE_MANAGER_SEARCH" />--> <!-- This create a help button to Joomla Official documentation - https://help.joomla.org/proxy?keyref=Help39:Extensions_Module_Manager_Search&lang=en -->
<!-- install/update/uninstall Script -->
<scriptfile>script.php</scriptfile>
<!-- Front-end Files -->
<files>
<!-- Optional File Copy -->
<folder>from-folder/examples-a</folder>
<filename>from-folder/examples-b/example4.php</filename>
<filename>from-folder/examples-b/index.html</filename>
<filename>from-folder/example1.php</filename>
<filename>from-folder/index.html</filename>
<!-- Main File Copy -->
<folder>language</folder><!-- Languages (New Method) -->
<folder>sql</folder>
<folder>tmpl</folder>
<filename>helloworld.xml</filename>
<filename>index.html</filename>
<filename>helper.php</filename>
<filename plugin="helloworld">helloworld.php</filename><!-- Make sure this is set right -->
</files>
<!-- Media Files -->
<media folder="media" destination="plg_content_helloworld">
<filename>helloworld_logo.png</filename>
<folder>css</folder>
<folder>js</folder>
</media>
<!-- Languages (Old Method - Might not be needed) -->
<languages folder="language">
<language tag="en-GB">en-GB/en-GB.plg_content_helloworld.ini</language>
<language tag="en-GB">en-GB/en-GB.plg_content_helloworld.sys.ini</language><!-- plg_content_helloworld.sys.ini no longer needed here? -->
</languages>
<!-- Configuration -->
<config>
<fields name="params">
<fieldset name="basic">
<field
name="shortcode"
type="text"
default="helloworld"
label="PLG_CONTENT_HELLOWORLD_SHORTCODE_LABEL"
description="PLG_CONTENT_HELLOWORLD_SHORTCODE_DESC"
maxlength="15"
size="15"
/>
<field
name="useTemplate"
type="radio"
label="PLG_CONTENT_HELLOWORLD_USETEMPLATE_LABEL"
description="PLG_CONTENT_HELLOWORLD_USETEMPLATE_DESC"
class="btn-group btn-group-yesno"
default="0"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field
name="showMessage"
type="radio"
label="PLG_CONTENT_HELLOWORLD_SHOWMESSAGE_LABEL"
description="PLG_CONTENT_HELLOWORLD_SHOWMESSAGE_DESC"
class="btn-group btn-group-yesno"
default="1"
>
<option value="1">JSHOW</option>
<option value="0">JHIDE</option>
</field>
<field
name="language"
type="sql"
default="1"
label="PLG_CONTENT_HELLOWORLD_SELECT_LANGUAGE_LABEL"
description="PLG_CONTENT_HELLOWORLD_SELECT_LANGUAGE_DESC"
query="SELECT id AS value, language FROM #__plg_content_helloworld"
/>
</fieldset>
<fieldset name="advanced">
<field
name="underlineMessage"
type="radio"
label="PLG_CONTENT_HELLOWORLD_UNDERLINEMESSAGE_LABEL"
description="PLG_CONTENT_HELLOWORLD_UNDERLINEMESSAGE_DESC"
class="btn-group btn-group-yesno"
default="1"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field
name="layout"
type="filelist"
default="default.php"
label="PLG_CONTENT_HELLOWORLD_LAYOUT_LABEL"
description="PLG_CONTENT_HELLOWORLD_LAYOUT_DESC"
directory="plugins/content/helloworld/tmpl"
filter=""
exclude="\.html$"
stripext="1"
hide_none="1"
hide_default="0"
/>
</fieldset>
</fields>
</config>
<!-- Database: Install, Update, Uninstall -->
<install>
<sql>
<file driver="mysql" charset="utf8">sql/mysql/install.mysql.utf8.sql</file><!-- MySQL -->
<file driver="sqlazure" charset="utf8">sql/sqlazure/install.sqlazure.utf8.sql</file><!-- SQL Server -->
</sql>
</install>
<update>
<schemas>
<schemapath type="mysql">sql/mysql/updates</schemapath><!-- MySQL -->
<schemapath type="sqlazure">sql/sqlazure/updates</schemapath><!-- SQL Server -->
</schemas>
</update>
<uninstall>
<sql>
<file driver="mysql" charset="utf8">sql/mysql/uninstall.mysql.utf8.sql</file><!-- MySQL -->
<file driver="sqlazure" charset="utf8">sql/sqlazure/uninstall.sqlazure.utf8.sql</file><!-- SQL Server -->
</sql>
</uninstall>
<!-- Update Server -->
<updateservers>
<server type="extension" priority="1" name="plg_content_helloworld (Plugin)">https://quantumwarp.com/updates/joomla/plg_content_helloworld/update.xml</server>
</updateservers>
</extension>