- Posts: 14
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Link from Item to Tag-View Menu only works sporadically
Link from Item to Tag-View Menu only works sporadically
- Yannick Lämmel
- Topic Author
- Offline
- New Member
Less
More
6 years 1 month ago #169657
by Yannick Lämmel
Link from Item to Tag-View Menu only works sporadically was created by Yannick Lämmel
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.
Thanks in advance!
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.
Thanks in advance!
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
6 years 1 month ago #169662
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Link from Item to Tag-View Menu only works sporadically
A URL would be more helpful than a var_dump.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Yannick Lämmel
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
6 years 1 month ago #169667
by Yannick Lämmel
Replied by Yannick Lämmel on 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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
6 years 1 month ago #169724
by Yannick Lämmel
Replied by Yannick Lämmel on topic Link from Item to Tag-View Menu only works sporadically
Hello Fotis,
Could you find the problem already?
Could you find the problem already?
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
6 years 1 month ago #169760
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic Link from Item to Tag-View Menu only works sporadically
Are you using a SEF/SEO extension?
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Yannick Lämmel
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
6 years 1 month ago #169840
by Yannick Lämmel
Replied by Yannick Lämmel on 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.
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.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
6 years 1 month ago #169849
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on 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.
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.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Yannick Lämmel
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
6 years 1 month ago #169879
by Yannick Lämmel
Replied by Yannick Lämmel on 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.
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.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
6 years 1 month ago #169895
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on 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.
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.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- Link from Item to Tag-View Menu only works sporadically