简体   繁体   English

Joomla 3-上传组件

[英]Joomla 3 - Uploading components

I will be building a component that allows me to override the user registration page. 我将构建一个使我可以覆盖用户注册页面的组件。 The question is, when I try to upload the custom component upon finishing the task, where does Joomla place the uploaded component? 问题是,当我在完成任务后尝试上传自定义组件时,Joomla会将上传的组件放在哪里? Will it be at the current templates folder(templates/mytemplate/html/) or in the components folder (root/components)? 是在当前模板文件夹(templates / mytemplate / html /)还是在components文件夹(root / components)中?

If you are creating a new component you have to define the path of your files in the xml installation package . 如果要创建新组件 ,则必须在xml安装包中定义文件的路径。 All component files are placed at components/*component_name/ folder. 所有组件文件都位于components/*component_name/文件夹中。

If you just want to make a template override of an existing component you have to copy the file that will be overriden from: 如果只想对现有组件进行模板替代 ,则必须复制将被替代的文件:

components/*component_name/views/*view_category/tmpl/*tmpl_name.php

to: 至:

templates/*template_name/html/*component_name/*view_category/*tmpl_name.php . templates/*template_name/html/*component_name/*view_category/*tmpl_name.php

Hope this helps 希望这可以帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM