自定义Joomla 3.x标签页

时间:2013-10-16 23:17:20

标签: javascript css3 tags joomla3.1

有谁知道在哪里自定义Joomla 3.x标签页?我是新手,Joomla标签也是新手。请告诉我我该怎么做以及在哪里可以找到要自定义的文件。谢谢

1 个答案:

答案 0 :(得分:1)

我假设您要自定义标签组件前端布局视图,因此您可以按照以下步骤进行操作(此过程比使用创建目录的步骤更快):

  1. 将/ components / com_tags“com_tags”目录复制到/ templates / your_template / html目录中;
  2. 检查您现在是否拥有以下内容:/ templates / your_template / html / com_tags;
  3. 展开/ templates / your_template / html / com_tags /目录并删除目录“controllers”,“helpers”,“models”和文件“controller.php”,“metadata.php”,“router.php”和“tags.php”;
  4. 展开剩余目录/ templates / your_template / html / com_tags / views /;
  5. 在里面你有“tag”和“tags”目录,每个目录都有一个目录“tmpl”;
  6. 删除每个文件中的“view.feed.php”和“view.html.php”(留下“index.html”;
  7. 现在在每个“tmpl”目录中,将文件(index.html和xml文件除外)移动到每个父目录(“tag”和“tags”);
  8. 删除“tmpl”目录;
  9. 现在,您在每个“标记”和“标记”目录中都有“您想要/需要自定义的文件。更改这些文件将覆盖组件的主文件。
  10. 您的模板目录中的结构应与以下内容类似:

    /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 docs

相关问题