Keyword

K2Content module:change category param. on the fly

  • Orestis Polychronakis
  • Orestis Polychronakis's Avatar Topic Author
  • Offline
  • New Member
More
12 years 3 weeks ago #103144 by Orestis Polychronakis
K2Content module:change category param. on the fly was created by Orestis Polychronakis
Hello all.

I have a page which shows all K2 items of one category using the category view of the k2 component.
(
option:com_k2
view:item_list
layout:category
id: the id of the category
)

I have created a layout override for this view. Below this layout override i have a module instance of K2 content which shows the k2 items of another category.
The category structure I have to keep is this:
HOTEL
---CITIES
ATHENS(has k2 items)
BRUSSELS(has k2 items)
DESTINATION INFORMATION
---CITIES
ATHENS(has k2 items, different than HOTEL->CITIES->ATHENS)
BRUSSELS(has k2 items, different than HOTEL->CITIES->BRUSSELS)

So I do an itemlist view with category layout for the HOTEL->CITIES->City_that_I_want
and below that I want the k2 content module to show the k2 items in the respective category of the DESTINATION INFORMATION.

What i thought of is changing the module category parameter on the fly for every request. Is there ay other way?

Thanks

Orestis

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


Powered by Kunena Forum