Keyword

Link from Item to Tag-View Menu only works sporadically

  • Yannick Lämmel
  • Yannick Lämmel's Avatar Topic Author
  • Offline
  • New Member
More
1 month 4 weeks ago #169657 by Yannick Lämmel
Yannick Lämmel created the topic: Link from Item to Tag-View Menu only works sporadically
Hi,

i have (for example) a item at /en/middle-mosel/trier/309-museum-at-trier-cathedral.html which has some Tags.

All Tags have own Menu entrys (for Example /en/searchtags/city.html) but for the most Tags the Generated Link is /en/middle-mosel/trier/tag/Historical.html which leads to 404.

All Tags and the Menu Names are written with normal Upperspace ("Historical"), the Menu aliases are written in lowerspace ("historical").

It depends on the Tag if the Link can be Generated or not. So "Historical" works in no item, while "City" works in all.

The attachment is a var_dump in the Tag Foreach. I didnt touched the "$this->item->tags" before the foreach.

File Attachment:

File Name: vardump.txt
File Size:3 KB


Thanks in advance!
Attachments:

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 4 weeks ago #169662 by Fotis
Fotis replied the topic: Link from Item to Tag-View Menu only works sporadically
A URL would be more helpful than a var_dump.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Yannick Lämmel
  • Yannick Lämmel's Avatar Topic Author
  • Offline
  • New Member
More
1 month 4 weeks ago #169667 by Yannick Lämmel
Yannick Lämmel replied the topic: Link from Item to Tag-View Menu only works sporadically
[http]www[dot]neuer[dot]mosel-inside[dot]de/en/middle-mosel/trier/309-museum-at-trier-cathedral.html

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

  • Yannick Lämmel
  • Yannick Lämmel's Avatar Topic Author
  • Offline
  • New Member
More
1 month 3 weeks ago #169724 by Yannick Lämmel
Yannick Lämmel replied the topic: Link from Item to Tag-View Menu only works sporadically
Hello Fotis,

Could you find the problem already?

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 2 weeks ago #169760 by Fotis
Fotis replied the topic: Link from Item to Tag-View Menu only works sporadically
Are you using a SEF/SEO extension?


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Yannick Lämmel
  • Yannick Lämmel's Avatar Topic Author
  • Offline
  • New Member
More
1 month 2 weeks ago #169840 by Yannick Lämmel
Yannick Lämmel replied the topic: Link from Item to Tag-View Menu only works sporadically
no, only the original Joomla SEF Plugin.

But I got news on this:
In the translated (falang) Menu Entry (Tag-View) ist not possible to choose a translated Tag (the List is in German). So only the Identical Tags (for ex. City in EN and DE) are working.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 2 weeks ago #169849 by Fotis
Fotis replied the topic: Link from Item to Tag-View Menu only works sporadically
First off, the links to tags should not generate a 404. If you have an items with a url /path/to/item, then your tags will inherit the item's path and become /path/to/tag/name_of_tag.

Now, I see you have a plugin to do multiple categories. Which one is it as it could be messing with the output. I do see duplicate entries in categories in "Published in...".

Additionally, try switching the URL suffix (.html) off. This could be borking the URL router.

Finally, create a menu item in a menu that you don't use in the site (a hidden menu, sort of) and point that menu item to all K2 Categories and use "content" as the menu alias. This menu link will make sure that your tags that have NO direct menu item always inherit the path /content/tag/tag_name.

I haven't tested K2 with Falang latest (didn't know it's even maintained to be honest). And frankly, I'm about to remove support for it as it's much simpler to do multi-lingual sites with core Joomla nowadays.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Yannick Lämmel
  • Yannick Lämmel's Avatar Topic Author
  • Offline
  • New Member
More
1 month 2 weeks ago #169879 by Yannick Lämmel
Yannick Lämmel replied the topic: Link from Item to Tag-View Menu only works sporadically
Yes, the false generated URLs are /path/to/category/tag/Tagname.

We use "Additional Categories for K2" from Thodoris Bgenopoulos. In the Items with duplicate displayed Categories, the Main Category was selected in the additional Categories as well. Correcting this does not help.

Turning off .html does not help.

The Menu Entry (K2 -> Categories) with all Categories selected does not grab the Tag View Link. Dont know why.

How to translate the Tags with Core Multilang? It seems like falang cant change the choosen tag of the menu entry to it's translated Version, so the URL Router can't find it.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 2 weeks ago #169895 by Fotis
Fotis replied the topic: Link from Item to Tag-View Menu only works sporadically
The extension you mention probably causes the issues. If you want a real, working solution for multiple categories, Yiannis from Web357.com launched this just yesterday: www.web357.com/joomla-extensions/multiple-categories-for-k2

It's really a solid solution for multiple categories in K2 and I've personally tested it. Make sure you completely uninstall "Additional Categories for K2" as it hasn't been updated for many years unfortunately.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

Moderators: william white