Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Joomla 插件安装,如何添加图片?_Joomla_Joomla3.3 - Fatal编程技术网

Joomla 插件安装,如何添加图片?

Joomla 插件安装,如何添加图片?,joomla,joomla3.3,Joomla,Joomla3.3,我正在创建Joomla插件(3.3版),我想在安装插件时向/images/文件夹添加一些图像。有没有办法通过清单文件添加它们,或者我必须创建安装文件?您完全可以通过清单文件添加它们,就像向组件添加图像一样 <files folder="site"> <folder>images</folder> </files> 图像 此安装图像文件夹位于插件文件夹的右侧。Hovewer我需要将图像安装到根文件夹,或者更好地安装到images/myfo

我正在创建Joomla插件(3.3版),我想在安装插件时向/images/文件夹添加一些图像。有没有办法通过清单文件添加它们,或者我必须创建安装文件?

您完全可以通过清单文件添加它们,就像向组件添加图像一样

<files folder="site">
    <folder>images</folder>
</files>

图像

此安装图像文件夹位于插件文件夹的右侧。Hovewer我需要将图像安装到根文件夹,或者更好地安装到images/myfolder。只需使用目标路径即可。或者将其作为介质并发送到介质文件夹,路径为您的姓名(如果您在/media中查看,您可以看到其他一些示例)。您需要使用install.php脚本文件在安装时移动图像