- Posts: 5
COMMUNITY FORUM
Tag URLs
- PanFasolka
-
Topic Author
- Offline
- New Member
Less
More
11 years 1 month 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.
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.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
11 years 1 month 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.
Please Log in or Create an account to join the conversation.
- PanFasolka
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 5
11 years 1 month 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.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
11 years 1 month 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.
Please Log in or Create an account to join the conversation.
- PanFasolka
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 5
11 years 1 month ago - 11 years 1 month 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
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.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
11 years 1 month 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.
Please Log in or Create an account to join the conversation.
- PanFasolka
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 5
11 years 1 month ago - 11 years 1 month 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.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
11 years 1 month ago #127102
by Lefteris
Replied by Lefteris on topic Re: Tag URLs
You are welcome.
Please Log in or Create an account to join the conversation.