简体   繁体   English

配置在类别博客布局菜单中单击文章时的模块(Joomla 2.5)

[英]Configuring modules for when an article is clicked in a category blog layout menu (Joomla 2.5)

Suppose I have these three modules: 假设我有以下三个模块:

  • main_menu_module (linked to a menu that has a Home Page link, and a Sport articles Blog Layout link) main_menu_module (链接到具有“ Home Page链接和“ Sport articles Blog Layout链接的菜单)
  • module1
  • module2

The module main_menu_module should be shown in all pages (which is OK). 模块main_menu_module应该显示在所有页面中(可以)。

I want that: 我要那个:

module1 be ONLY in Blog Layout List of Sport category, not when a single Sport article from that list was clicked. 在“ Sport 博客布局列表 ”类别中添加module1 ,而不是单击该列表中的单个“ Sport文章时。

module2 be ONLY in single Sport article from that list, and NOT when the Blog Layout LIST was shown. module2 只能出现在该列表中的单个Sport文章中,而不是显示Blog Layout LIST时出现。

Now the question is: 现在的问题是:

Is that possible at all using Joomla? 使用Joomla完全可以吗? Even if that is not, no problem. 即使不是那样,也没有问题。 I just want a link proving this fact. 我只想要一个证明这一事实的链接。

Please ask me if my question is not clear enough. 如果我的问题还不够清楚,请问我。

Your question is clear and makes sense. 您的问题很明确,很有意义。 This can be done in Joomla, but it requires an extension. 这可以在Joomla中完成,但需要扩展。 Basic Joomla will not do this because of itemID inheritance. 由于itemID继承,基本的Joomla将不会执行此操作。 Any content item that does not directly have a menu item inherits the itemID from it's parent so a module assigned to the sport category will also display on the individual items in that category. 任何不直接具有菜单项的内容项都将从其父项继承itemID,因此分配给运动类别的模块也将显示在该类别的各个项上。

In order to solve this issue you need to install Advanced Module Manager. 为了解决此问题,您需要安装高级模块管理器。 This allows you to have much finer control over where your module display, such as including or excluding child items when determining whether the module should display. 这使您可以更好地控制模块的显示位置,例如在确定是否显示模块时包括或排除子项。

http://www.nonumber.nl/extensions/advancedmodulemanager http://www.nonumber.nl/extensions/advancedmodulemanager

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM