- Posts: 2
COMMUNITY FORUM
How to bind an output mod_k2_content on items
- Pavel Eshanov
-
Topic Author
- Offline
- New Member
Less
More
11 years 2 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
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.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
11 years 2 months ago #126213
by Lefteris
Replied by Lefteris on topic Re: How to bind an output mod_k2_content on items
Hi. Try to go to module settings and ensure that "Fetch items from children categories" is set to "Yes".
Please Log in or Create an account to join the conversation.
- Pavel Eshanov
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 2
11 years 2 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.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
11 years 2 months ago #126215
by Lefteris
Replied by Lefteris on topic Re: How to bind an output mod_k2_content on items
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.
Please Log in or Create an account to join the conversation.