Categories

有特色的模板

Joomla 3.x. 如何使滑块/其他模块出现在所有页面上

莱恩德威特 2014年10月13日
Rating: 5.0/5. 来自2票.
请稍等...

本教程展示了如何制作 slider/other模块出现在所有页面上.

Joomla 3.x. 如何使滑块/其他模块出现在所有页面上

我们要做 slider 和服务 module 出现在包括帖子在内的所有页面上. Let’s make slider 出现在所有页面上.

  1. 打开管理部分,转到 扩展- - - - - - Module Manager, open slider module:

    Joomla 3.x. 如何使滑块其他模块出现在所有页面1

  2. Go to 菜单分配 tab 并选择 在所有页面上 option. 保存更改:

    Joomla 3.x. 如何使滑块其他模块出现在所有页面2

  3. 请打开 模板/ themeXXXX /索引.php file. 寻找合适位置的代码. 在我们的例子中 slider 被分配到展示位置. File index.PHP有如下代码:

    countModules('showcase') && $hideByView == false && $hideByEdit == false): ?>
  4. 请删除以下代码: && $hideByView == false. 修改后的代码看起来像 screenshot below:

    Joomla 3.x. 如何使滑块其他模块出现在所有页面3

  5. 保存更改并上传修改后的文件. 刷新页面. Slider module 现在出现在所有页面中:

    Joomla 3.x. 如何使滑块其他模块出现在所有页面4

让我们创建服务 module (位置底部)出现在所有页面上(请注意这样 module 可能不包括在你的模板中).

  1. Open the module in your module 经理,去 菜单分配 tab 并选择 在所有页面上 option. 保存更改:

    Joomla 3.x. 如何使滑块其他模块出现在所有页面5

  2. 专门为职位搜索代码 module 分配给. 在我们的例子中 module 分配给 bottom position. Remove && $hideByView == false code in 模板/ themeXXXX /索引.php file.
    修改后的代码应该看起来像 screenshot below:

    Joomla 3.x. 如何使滑块其他模块出现在所有页面6

  3. 保存更改并上传修改后的文件. 刷新页面. Services module 现在出现在所有页面上. 您可以对所有模块执行相同的更改:

    Joomla 3.x. 如何使滑块其他模块出现在所有页面7

请随时查看下面的详细视频教程:

Joomla 3.x. 如何使滑块/其他模块出现在所有页面上

最好的Joomla模板
这个条目被张贴了出来 Joomla! Tutorials and tagged Joomla, module, pages, slider. 书签的 permalink.

提交罚单

如果您仍然无法找到关于您的问题的足够的教程,请使用以下链接向我们的技术支持团队提交请求. 我们将在接下来的24小时内为您提供我们的帮助和协助: 提交罚单