UNPKG

generator-joomla-spc

Version:

Joomla-spc generator for Yeoman. Creates Joomla 2.5 and 3.0 files

71 lines (63 loc) 2.42 kB
<?xml version="1.0" encoding="utf-8"?> <extension type="plugin" version="2.5" group="<%= _.slugify(componentGroup)%>" method="upgrade"> <name><%= _.str.capitalize( _.slugify(componentGroup)) %> - <%= _.slugify(componentName)%></name> <creationDate><%= currentDate %></creationDate> <author><%= authorName %></author> <authorEmail><%= authorEmail %></authorEmail> <authorUrl><%= authorURL %></authorUrl> <copyright>Copyright <%= currentYear %></copyright> <license><%= license %></license> <version><%= versionno %></version> <!-- Description contents contained in separate language file: see languages folder --> <description>PLG_<%= _.slugify(componentName).toUpperCase() %>-DESC Don't forget to publish this plugin!</description> <!-- Runs on install/uninstall/update; New in 1.6 --> <scriptfile>install-uninstall.php</scriptfile> <install> <!-- Runs on install --> <sql> <file driver = "mysql" charset = "utf8">sql/install.mysql.utf8.sql</file> </sql> </install> <uninstall> <!-- Runs on uninstall --> <sql> <file driver = "mysql" charset = "utf8">sql/uninstall.mysql.utf8.sql</file> </sql> </uninstall> <update> <!-- Runs on update; New in 1.6 --> <schemas> <schemapath type = "mysql">sql/updates/mysql</schemapath> </schemas> </update> <scriptfile>install-uninstall.php</scriptfile> <languages folder = "site"> <language tag = "en-GB">languages/en-GB/en-GB.plg_<%= _.slugify(componentName)%>.ini</language> </languages> `<languages folder = "admin"> <language tag = "en-GB">languages/en-GB/en-GB.com_<%= _.slugify(componentName)%>.ini</language> <language tag = "en-GB">languages/en-GB/en-GB.com_<%= _.slugify(componentName)%>.sys.ini</language> </languages> <files> <filename plugin="<%= _.slugify(componentName)%>"><%= _.slugify(componentName)%>.php</filename> <filename>index.html</filename> </files> <!-- change label and description in config to label="PLG_COMPONENTNAME_FIELD_PARAM1_LABEL" description="PLG_COMPONENTNAME_FIELD_PARAM1_DESC" and add to language file. --> <config> <fields name="params"> <fieldset name="basic"> <field name="params1" type="text" default="4" label="params1 label" description="params1 description" /> <field name="params2" type="text" default="4" label="params2 label" description="params2 description" /> </fieldset> </fields> </config> </extension>