j4examplecode
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
j4examplecode/src/administrator/components/com_foos/foos.xml

85 lines
2.9 KiB

<?xml version="1.0" encoding="utf-8" ?>
<extension type="component" method="upgrade">
<name>COM_FOOS</name>
<creationDate>[DATE]</creationDate>
<author>[AUTHOR]</author>
<authorEmail>[AUTHOR_EMAIL]</authorEmail>
<authorUrl>[AUTHOR_URL]</authorUrl>
<copyright>[COPYRIGHT]</copyright>
<license>GNU General Public License version 2 or later;</license>
<version>__BUMP_VERSION__</version>
<description>COM_FOOS_XML_DESCRIPTION</description>
<namespace path="src">FooNamespace\Component\Foos</namespace>
<scriptfile>script.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 -->
<schemas>
<schemapath type="mysql">sql/updates/mysql</schemapath>
</schemas>
</update>
<!-- Frond-end files -->
<files folder="components/com_foos">
<folder>language</folder>
<folder>src</folder>
<folder>tmpl</folder>
</files>
<media folder="media/com_foos" destination="com_foos">
<filename>joomla.asset.json</filename>
<folder>js</folder>
<filename>joomla.asset.json</filename>
</media>
<!-- Back-end files -->
<administration>
<menu img="class:comment">
COM_FOOS
<params>
<dashboard>foos</dashboard>
</params>
</menu>
<submenu>
<menu link="option=com_foos">
COM_FOOS
<params>
<menu-quicktask-title>COM_FOOS</menu-quicktask-title>
<menu-quicktask>index.php?option=com_foos&amp;view=foo&amp;layout=edit</menu-quicktask>
</params>
</menu>
<menu link="option=com_foos">COM_FOOS</menu>
<menu link="option=com_categories&amp;extension=com_foos">
JCATEGORY
<params>
<menu-quicktask-title>JCATEGORY</menu-quicktask-title>
<menu-quicktask>index.php?option=com_categories&amp;view=category&amp;layout=edit&amp;extension=com_foos</menu-quicktask>
</params>
</menu>
<menu link="option=com_fields&amp;context=com_foos.foo">JGLOBAL_FIELDS</menu>
<menu link="option=com_fields&amp;view=groups&amp;context=com_foos.foo">JGLOBAL_FIELD_GROUPS</menu>
</submenu>
<files folder="administrator/components/com_foos">
<filename>access.xml</filename>
<filename>foos.xml</filename>
<filename>config.xml</filename>
<folder>forms</folder>
<folder>presets</folder>
<folder>language</folder>
<folder>services</folder>
<folder>sql</folder>
<folder>src</folder>
<folder>tmpl</folder>
</files>
</administration>
<changelogurl>https://codeberg.org/astrid/j4examplecode/raw/branch/tutorial/changelog.xml</changelogurl>
<updateservers>
<server type="extension" name="Foo Updates">https://codeberg.org/astrid/j4examplecode/raw/branch/tutorial/foo_update.xml</server>
</updateservers>
<dlid prefix="dlid=" suffix="" />
</extension>