Keyword

Tag URLs

  • PanFasolka
  • PanFasolka's Avatar Topic Author
  • Offline
  • New Member
More
10 years 6 months ago #127095 by PanFasolka
Tag URLs was created by PanFasolka
Hi,
I need help with urls which K2 generate. By default url for tag page looks similar to:

example.com/category/subcategory/tag/MY_TAG

which is poor for me. Could someone tell me how to change (maybe router.php ?) to gain urls like this:

example.com/tag/MY_TAG

cause in K2 administration panel there's no way to change url structure.

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

More
10 years 6 months ago #127096 by Lefteris
Replied by Lefteris on topic Re: Tag URLs
Hi. There is way to change URLs using K2 administration panel. Go to K2 parameters and check the Advanced SEF options.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • PanFasolka
  • PanFasolka's Avatar Topic Author
  • Offline
  • New Member
More
10 years 5 months ago #127097 by PanFasolka
Replied by PanFasolka on topic Re: Tag URLs
I know. But there's only "Prefix for tag URLs" which change only prefix but before "tag" in URL there's always category. How to delete category name before tag?

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

More
10 years 5 months ago #127098 by Lefteris
Replied by Lefteris on topic Re: Tag URLs
Where are these links generated in your site? Are generated by K2 modules or are you using a third-party extension? Try to create a menu link to the tag.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • PanFasolka
  • PanFasolka's Avatar Topic Author
  • Offline
  • New Member
More
10 years 5 months ago - 10 years 5 months ago #127099 by PanFasolka
Replied by PanFasolka on topic Re: Tag URLs
I'm talking about tags showing in article (k2 item)

Damn...now i found K2 demo: demo.getk2.org/categories/story/224/morbi-adipiscing-sapien-non-tellus and this article is in category (am i right?) and under article content there's:

Tagged under LA USA Skyscrapers Avenues Traffic

and each tag has url like:

demo.getk2.org/show/tag/Skyscrapers (without /category-name) - and this is what i'm trying to achive.

Don't know why on my joomla+k2 installation (on localhost and on web) each tag has category in url before /tag. Do u have idea what cause problem like this?

Yes i know that i can create a menu link for each tag but what if there will be many tags?


Edit: To be sure I override whole com_k2 directory with new one (without any changes) and in k2 articles still is:

localhost/mysitename/category-name/subcategory-name/tag/TAG-NAME

If U could look on my SEF section:
I've tested to change all option in SEF section with no effect.


Edit2: I found something strange: I put K2 Tool module (Tag cloud) on each page. And on main page my tag urls looks like:

http://sitename/component/k2/tag/my_tag

on article page in tag cloud: urls are:

http://sitename/category/subcategory/tag/my_tag

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

More
10 years 5 months ago #127100 by Lefteris
Replied by Lefteris on topic Re: Tag URLs
Create a new menu link to K2 categories. In the options don't select any category. This way K2 will assign all not resolved URLs to this menu link. This is how it works in the demo site. Actually the menu link "show" is what i just described.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • PanFasolka
  • PanFasolka's Avatar Topic Author
  • Offline
  • New Member
More
10 years 5 months ago - 10 years 5 months ago #127101 by PanFasolka
Replied by PanFasolka on topic Re: Tag URLs
Thank U sooo much now it works. I Have no idea that k2 assign all items without category that way.

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

More
10 years 5 months ago #127102 by Lefteris
Replied by Lefteris on topic Re: Tag URLs
You are welcome.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum