Keyword

K2 tag path

  • Adam O.
  • Adam O.'s Avatar Topic Author
  • Offline
  • New Member
More
10 years 7 months ago #124742 by Adam O.
K2 tag path was created by Adam O.
Hi there,

I've got problem with K2 path - menu item alias.

When I click on tag, it loads me menu alias totally not related with this tag, eg.

mysite.com/2014-02-11-01-38/work/tag/MyTag

I've tried to add menu item to not definied tag - make my tag choice as empty, and nothing work

Only when I manualy change in item.php and in
mod_k2_tools/tags.php

the path from:

$tag->link

to:

index.php?option=com_k2&view=itemlist&task=tag&tag='.$tag->name.'&Itemid=359

it works correct (359 is my correct menu item)


Why it loads me totally different menu item alias?

Thanks for some help!

best regads
Adam

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 7 months ago #124743 by Yiota
Replied by Yiota on topic Re: K2 tag path
So you issue is that even though you have a menu link towards this tag you get a different url when clicking on it from the K2 tools module?

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

  • Adam O.
  • Adam O.'s Avatar Topic Author
  • Offline
  • New Member
More
10 years 7 months ago #124744 by Adam O.
Replied by Adam O. on topic Re: K2 tag path
Hello,

I solved this issue by adding in com_k2/helpers/route.php

to getTagRoute line

'&Itemid=359' to $link


it's manual solution, but works ;-)

greetings!
Adam

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

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 7 months ago #124745 by Yiota
Replied by Yiota on topic Re: K2 tag path
I'm glad you sorted it out, even though modifying core files is not something I recommend.

Make sure to get a backup of this change when you upgrade K2.

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


Powered by Kunena Forum