Keyword

How to bind an output mod_k2_content on items

  • Pavel Eshanov
  • Pavel Eshanov's Avatar Topic Author
  • Offline
  • New Member
More
10 years 6 months ago #126212 by Pavel Eshanov
How to bind an output mod_k2_content on items was created by Pavel Eshanov
How to bind an output module content mod_k2_content on items and categories K2

Sorry for my English.

There are multiple root categories with subcategories. How to get the module mod_k2_content display materials that are found only in the range root category and subcategories? that is, the module must be published once and when injected into the category it should display the materials only root category.

Code in helper.php
Log in  or Create an account to join the conversation.

More
10 years 6 months ago #126213 by Lefteris
Hi. Try to go to module settings and ensure that "Fetch items from children categories" is set to "Yes".

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Pavel Eshanov
  • Pavel Eshanov's Avatar Topic Author
  • Offline
  • New Member
More
10 years 6 months ago #126214 by Pavel Eshanov
Replied by Pavel Eshanov on topic Re: How to bind an output mod_k2_content on items
thanks for the quick reply. 't work. module blank.

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #126215 by Lefteris
This seems like an issue on your logic. First of all modules don't work like that. Modules are cached. So when you visit the first category, the module will be cached and all the next pages will display the same output. Secondly, the code you provided will not work for menu links to multiple categories as there is no id parameter in the URL in that case.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.