Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Problem K2 item menu
(1 viewing) (1) Guest
Support forum for users using free JoomSEF extensions. These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: Problem K2 item menu

Problem K2 item menu 15 years ago #7286

Hi,

I've got a problem with K2 extension, when I add a item in my mainmenu and If I use the Item Listing (Category) Layout, the item url is bad rewrite and this link stay with /K2 and don't rewrite with the category title.
So the link doesn't work at all.

EDIT : I've tried to modify com_k2.php in sef_ext but I can't get the real Itemid of the Url, I always get the same for each items of the menu, can you help me ?


I've you got a solution ?

Thanks
Alex
Last Edit: 15 years ago by pointweb.

Re:Problem K2 item menu 15 years ago #7295

I've found a solution in the joomsef.php line 1170 :

 
// always remove Itemid and store it in a separate column
if (!is_null($uri->getVar('Itemid'))) {
$Itemid = $uri->getVar('Itemid');
$uri->delVar('Itemid');
}
 



I just comment these lines :


 
// always remove Itemid and store it in a separate column
/*if (!is_null($uri->getVar('Itemid'))) {
$Itemid = $uri->getVar('Itemid');
$uri->delVar('Itemid');
}*/

 


Because, when you create a link to K2 category (mainmenu) you need the ItemId but in Joomsef.php it's always remove so I just comment to keep the itemid !!!

Bye
++

Re:Problem K2 item menu 13 years, 7 months ago #18320

Is this issue solved in the current version?

Re:Problem K2 item menu 13 years, 7 months ago #18376

  • dajo
  • OFFLINE
  • Posts: 5069
Hello,

If you're having problems with missing Itemid, open K2 extension parameters on the Manage Extensions page in JoomSEF and on the Common tab set "Ignore multiple sources" to "No", "Itemid handling" to "Override" and leave "Override Itemid" blank.

Best regards,
ARTIO Support Team
ARTIO Support Team
  • Page:
  • 1
User Login Empty