Joomla 3.x. 如何使滑块/其他模块出现在所有页面上
2014年10月13日
本教程展示了如何制作 slider/other模块出现在所有页面上.
Joomla 3.x. 如何使滑块/其他模块出现在所有页面上
我们要做 slider 和服务 module 出现在包括帖子在内的所有页面上. Let’s make slider 出现在所有页面上.
-
打开管理部分,转到 扩展- - - - - - Module Manager, open slider module:
-
Go to 菜单分配 tab 并选择 在所有页面上 option. 保存更改:
-
请打开 模板/ themeXXXX /索引.php file. 寻找合适位置的代码. 在我们的例子中 slider 被分配到展示位置. File index.PHP有如下代码:
countModules('showcase') && $hideByView == false && $hideByEdit == false): ?>
-
请删除以下代码: && $hideByView == false. 修改后的代码看起来像 screenshot below:
-
保存更改并上传修改后的文件. 刷新页面. Slider module 现在出现在所有页面中:
让我们创建服务 module (位置底部)出现在所有页面上(请注意这样 module 可能不包括在你的模板中).
-
Open the module in your module 经理,去 菜单分配 tab 并选择 在所有页面上 option. 保存更改:
-
专门为职位搜索代码 module 分配给. 在我们的例子中 module 分配给 bottom position. Remove && $hideByView == false code in 模板/ themeXXXX /索引.php file.
修改后的代码应该看起来像 screenshot below: -
保存更改并上传修改后的文件. 刷新页面. Services module 现在出现在所有页面上. 您可以对所有模块执行相同的更改:
请随时查看下面的详细视频教程: