Joomla plugin install xml -- install file to different folder(Joomla 插件安装 xml -- 将文件安装到不同的文件夹)
问题描述
是否可以将 Joomla 插件中的文件安装到非插件目录?
Is it possible to install a file from a Joomla plugin to a non-plugin directory?
例如——默认情况下,Joomla 插件安装 xml 如下所示:
For example-- by default a Joomla plugin install xml looks like this:
<?xml version="1.0" encoding="utf-8"?>
<install version="1.5" type="plugin" group="mycomponent" method="upgrade">
<name>MyPlugin</name>
<author>Me Myself</author>
<creationDate>January 29, 2011</creationDate>
<copyright>Copyright (C) 2011 ME</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<authorEmail>me@mysite.com</authorEmail>
<authorUrl>www.mysite.com</authorUrl>
<version>1.5</version>
<description>My cool plugin.</description>
<files>
<filename plugin="myplugin">myplugin.php</filename>
</files>
<params />
</install>
这会将 myplugin.php 文件安装到/plugins/mycomponent plugins 文件夹中.
This will install the myplugin.php file to the /plugins/mycomponent plugins folder.
但是,如果我想安装一些图像文件以使我的插件看起来更好,并且想将它们放在/images 文件夹中,有没有办法提供该路径?
However, if I want to install some image files to make my plugin look nicer, and want to drop those in the /images folder, is there a way to supply that path?
谢谢
推荐答案
<!-- Site Main Media File Copy Section -->
<media destination="com_helloworld">
<filename>image.png</filename>
<filename>flash.swf</filename>
</media>
http://docs.joomla.org/Components:xml_installfile
这篇关于Joomla 插件安装 xml -- 将文件安装到不同的文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Joomla 插件安装 xml -- 将文件安装到不同的文件夹


基础教程推荐
- Libpuzzle 索引数百万张图片? 2022-01-01
- 通过 PHP SoapClient 请求发送原始 XML 2021-01-01
- 在多维数组中查找最大值 2021-01-01
- mysqli_insert_id 是否有可能在高流量应用程序中返回 2021-01-01
- 超薄框架REST服务两次获得输出 2022-01-01
- 在 Woocommerce 中根据运输方式和付款方式添加费用 2021-01-01
- XAMPP 服务器不加载 CSS 文件 2022-01-01
- 在 PHP 中强制下载文件 - 在 Joomla 框架内 2022-01-01
- WooCommerce 中选定产品类别的自定义产品价格后缀 2021-01-01
- 如何在 PHP 中的请求之间持久化对象 2022-01-01