COMMUNITY FORUM
creating tags with dot eg "joomla 2.5"
- alper
-
Topic Author
- Offline
- New Member
Less
More
13 years 1 month ago - 13 years 1 month ago #64810
by alper
creating tags with dot eg "joomla 2.5" was created by alper
hi,
is it possible to create a tag using dot, such as "joomla 2.5"? When I try K2 removes the dot and the tag becomes "joomla 25".
thanks..
Joomla 2.5.4
K2 2.5.6
is it possible to create a tag using dot, such as "joomla 2.5"? When I try K2 removes the dot and the tag becomes "joomla 25".
thanks..
Joomla 2.5.4
K2 2.5.6
Please Log in or Create an account to join the conversation.
- Francisco Caivano
-
- Offline
- New Member
13 years 1 month ago #64811
by Francisco Caivano
Replied by Francisco Caivano on topic Re: creating tags with dot eg "joomla 2.5"
Which browser are you using?
It works fine for me when writing "Joomla 2.5" and adding the tag.
Im using Joomla 2.5.4 (latest right now) and K2 v2.5.6.
It works fine for me when writing "Joomla 2.5" and adding the tag.
Im using Joomla 2.5.4 (latest right now) and K2 v2.5.6.
Please Log in or Create an account to join the conversation.
- alper
-
Topic Author
- Offline
- New Member
13 years 1 month ago #64812
by alper
Replied by alper on topic Re: creating tags with dot eg "joomla 2.5"
hi, I've tried chrome and firefox, and it is the same. I'm talking about the tag itself, not anything else.
Can you create a tag with this name "Joomla 2.5.4"?
When I save it turns to Joomla 254.
Can you create a tag with this name "Joomla 2.5.4"?
When I save it turns to Joomla 254.
Please Log in or Create an account to join the conversation.
- k2man
-
- Offline
- New Member
Less
More
- Posts: 3
11 years 1 month ago - 11 years 1 month ago #64813
by k2man
Replied by k2man on topic Re: creating tags with dot eg "joomla 2.5"
Has a solution been found for this bug? It's still a problem with Joomla! 3.2.2 / K2 v2.6.8
I need to add periods to K2 tags and they are being removed when saved.
I can't wait for an update to fix this. I would love to hear about any type of hack to correct this.
I need to add periods to K2 tags and they are being removed when saved.
I can't wait for an update to fix this. I would love to hear about any type of hack to correct this.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
11 years 1 month ago #64814
by Lefteris
Replied by Lefteris on topic Re: creating tags with dot eg "joomla 2.5"
@k2man
This is how it is designed to work. The code that strips the dots is located at line 32 of /administrator/components/com_k2/tables/k2tag.php . However, if you edit it, don't get surprised if tag links stop working.
This is how it is designed to work. The code that strips the dots is located at line 32 of /administrator/components/com_k2/tables/k2tag.php . However, if you edit it, don't get surprised if tag links stop working.
Please Log in or Create an account to join the conversation.
- k2man
-
- Offline
- New Member
Less
More
- Posts: 3
11 years 1 month ago #64815
by k2man
Replied by k2man on topic Re: creating tags with dot eg "joomla 2.5"
Thank you for your reply.
It appears to be stripping the . because it cannot be used in the tag url?
When I remove line 30 [ $this->name = JString::str_ireplace('.', '', $this->name); ] in the file you mentioned that does the . stripping, it shows the tag correctly but the link does not function.
Is there a way to replace a . with something else in the url and display it correctly on the front-end and back-end?
It appears to be stripping the . because it cannot be used in the tag url?
When I remove line 30 [ $this->name = JString::str_ireplace('.', '', $this->name); ] in the file you mentioned that does the . stripping, it shows the tag correctly but the link does not function.
Is there a way to replace a . with something else in the url and display it correctly on the front-end and back-end?
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
11 years 1 month ago #64816
by Lefteris
Replied by Lefteris on topic Re: creating tags with dot eg "joomla 2.5"
You can alter the line 32 to replace it with whatever you want. Note that this should be a URL friendly character. I suggest to not edit the file at all.
Please Log in or Create an account to join the conversation.
- k2man
-
- Offline
- New Member
Less
More
- Posts: 3
11 years 1 month ago - 11 years 1 month ago #64817
by k2man
Replied by k2man on topic Re: creating tags with dot eg "joomla 2.5"
I need to correct this because the blog posts require a . in some of the tags.
1. Why don't you suggest correcting this issue?
Wordpress is capable of this by switching . to - in the URL and it displays the . correctly in the front-end and back-end
2. When I edit the file it just replaces or removes the . and displays nothing or the replacement instead of the .
3. Even if it's a hack, I need to correct this because the use of . is required
1. Why don't you suggest correcting this issue?
Wordpress is capable of this by switching . to - in the URL and it displays the . correctly in the front-end and back-end
2. When I edit the file it just replaces or removes the . and displays nothing or the replacement instead of the .
3. Even if it's a hack, I need to correct this because the use of . is required
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
11 years 1 month ago #64818
by Lefteris
Replied by Lefteris on topic Re: creating tags with dot eg "joomla 2.5"
Regarding your questions:
1. Because it cannot be corrected now. This is a limitation of tags structure in K2. It will be corrected in the upcoming version 3 of K2. But it cannot be corrected in K2 2.x. This is how the situation is.
2. and 3. We do not provide support on hacks. We recommend to leave this as it works.
1. Because it cannot be corrected now. This is a limitation of tags structure in K2. It will be corrected in the upcoming version 3 of K2. But it cannot be corrected in K2 2.x. This is how the situation is.
2. and 3. We do not provide support on hacks. We recommend to leave this as it works.
Please Log in or Create an account to join the conversation.