【问题标题】:How to override joomla 3 component template in 2 places?如何在 2 个地方覆盖 joomla 3 组件模板?
【发布时间】:2014-11-28 05:42:08
【问题描述】:

如何在两个不同的页面中覆盖 com_content 的模板? 例如,我有一个包含两页“Page1”和“Page2”的菜单。 我需要 Page1 中的 com_content 必须使用一个 html 模板, Page2 中的 com_content 必须使用另一个 html 模板。

我该怎么做?

【问题讨论】:

    标签: templates joomla joomla3.2


    【解决方案1】:

    您必须创建模板覆盖并将其放在:

    /templates/*your_template/html/com_content/article/*template_name.php
    

    然后你可以选择布局:

    Article -> Options -> Alternative Layout
    

    希望对你有帮助

    【讨论】:

    • 是的,这就是我所需要的!谢谢。
    • 你好。您是否也知道如何覆盖类别博客布局?
    • 据我所知,博客覆盖类别存在错误,请尝试进行谷歌搜索。
    • 您的意思是最新版本 3.3.5/3.3.6 中的错误吗?
    • 我认为在所有 J3 版本中都有。
    猜你喜欢
    • 1970-01-01
    • 2012-06-14
    • 2014-01-28
    • 2014-02-06
    • 2013-04-13
    • 1970-01-01
    • 2016-05-10
    • 1970-01-01
    • 2014-11-27
    相关资源
    最近更新 更多