【发布时间】:2016-08-05 17:31:29
【问题描述】:
我最近有一个任务转储给我,我需要做的就是在 joomla 的模板中添加一个链接标题。我可以直接在
中的 default.php 中执行此操作/modules/mod_articles_category/tmpl/default.php
但它当然会出现在使用该模板的任何模块中,这是不可接受的。
在昨天之前我还没有接触过 joomla,我对这变得多么痛苦感到惊讶!
我一直在关注教程,在
中创建了一个覆盖模板templates/template_name/html/mod_articles_category/default.php
但我在管理控制台的模块选项中没有看到任何使用此覆盖模板的选项。
我还尝试创建模块本身的副本,并将链接头简单地添加到 default.php 文件中,但由于没有模块管理器扩展,只有准系统 joomla 3,因此没有安装此模块的任何选项。我想做的是使用覆盖模板,因为它似乎是最简单的解决方案。
我做错了什么,我无法从我的覆盖模板中看到任何效果?
【问题讨论】:
-
请简单解释一下。我有点困惑。
but I dont see any option to utilize this override template in the module options of the admin console. I also tried creating a duplicate of the module itself with the link header simply added into the default.php file but don't have any option to have this module installed since there is no module manager extension, just barebones joomla 3. What I'd like to do is use the override template, since it seems like the simplest solution. -
如果我在管理控制台并单击扩展 --> 模块然后导航到我想使用我的覆盖模板的模块,我看不到选择覆盖模板的选项,它没有使用自动覆盖。我尝试创建一个自定义模块,它基本上是 mod_articles_category 的克隆,但是添加了我想要的更改。我没有在其他在线教程中看到的任何“模块管理器”或“扩展管理器”,所以我似乎无法安装我的自定义模块。好像我能够让我想要的模块使用我的覆盖模板
-
似乎如果我能够让我想要的模块使用我的覆盖模板就足以解决这个问题。我在过去 24 小时内才开始使用 joomla,如果我处理不当,请原谅我。
-
您要在模块的
Alternative Layout中选择自定义布局吗? -
还是要覆盖默认模块的输出?