谁能知道在哪里自定义 Joomla 3.x 标签页?我是新手,Joomla 标签也是新的)。请告诉我我该怎么做以及在哪里可以找到要自定义的文件。谢谢
问问题
732 次
1 回答
1
我假设您想自定义标签组件前端布局视图,因此您可以按照以下步骤进行(此过程比使用创建目录等逐步进行更快):
- 将 /components/com_tags "com_tags" 目录复制到 /templates/your_template/html 目录中;
- 检查您现在是否拥有以下内容:/templates/your_template/html/com_tags;
- 展开 /templates/your_template/html/com_tags/ 目录并删除目录“controllers”、“helpers”、“models”和文件“controller.php”、“metadata.php”、“router.php”和“tags” .php";
- 展开剩余目录/templates/your_template/html/com_tags/views/;
- 里面有“tag”和“tags”目录,每个目录都有一个目录“tmpl”;
- 删除其中的文件“view.feed.php”和“view.html.php”(保留“index.html”;
- 现在在每个“tmpl”目录中,将文件(除了 index.html 和 xml 文件)移动到其每个父目录(“tag”和“tags”);
- 删除“tmpl”目录;
- 现在,您在每个“标签”和“标签”目录中都有您想要/需要自定义的文件。更改这些文件将覆盖组件的主文件。
您的模板目录中的结构应该类似于以下内容:
/templates/
/your_template/
/html/
/com_tags/
/tag/
/* the files you will be able to override are here */
/tags/
/* the files you will be able to override are here */
希望能帮助到你。如需进一步参考,请访问Joomla 文档
于 2013-10-17T18:18:59.640 回答