test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • cplanetdoo Friend
    #178548

    I have a problem with the Category module (mod_k2_tools – category listing) when a menu item Menux_X which displays items by more than one K2 categories is published.

    Even when Menu_X is not active, the links inside the category module are like this

    ../index.php?option=com_k2&view=itemlist&task=category&id=Cat_id:Cat_alias&Itemid=561&lang=en

    for every category where Cat_id and Cat_alias are the ID and alias of the repsective category. and guess what… 561 is the menu ID of Menu_X which results every K2 category to be rendered in the Menu_X and the menu header shows Menu_X when it’s not supposed to do so.

    If I unpublish the Menu_X then the links are being converted to

    ../index.php?option=com_k2&view=itemlist&task=category&id=Cat_id:Cat_alias&lang=en
    which missed the &Itemid=561 as it should be.

    So I’m asking what do i have to do to remove &Itemid=561 from the first occasion and what exactly the javascript in ja_lenshtmlmod_k2_toolscategories.php does? Do I have to have to write down some more JS to remove the undesired &Itemid=561?

    In the demo you can check it by choosing for example the category landscape while in the homepage. It still renders the result inside the home menu and the text “LATEST SHOTS” still exists while it shouldn’t. In the demo case the Menu_X is the homepage but in my case its not sothat’s the problem and the results are really disturbing. Any ideas?

    cplanetdoo Friend
    #458978

    using str_replace in categories.php makes it somehow acceptable but its not a solution. Now it renders each one K2 category in the home menu. Is it necessary a k2 category to be rendered in a menu? I don’t want to a menu title to be displayed when i look at the items of a K2 category

    HeR0 Friend
    #459015

    Hi Cplanetdoo,

    Itemid in link is created by K2 method. So if there is a menu related to K2 component, each item in K2 tool module is assigned to Itemid which is id of K2 menu link .

    Hope you can understand that i explain. 🙂

    Regards,

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  HeR0 12 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum