- Posts: 28
COMMUNITY FORUM
How do I allow a dash in tag names?
- kristofferrom
-
Topic Author
- Offline
- Junior Member
Less
More
13 years 1 month ago #64661
by kristofferrom
How do I allow a dash in tag names? was created by kristofferrom
I've got a tag similar to tag-name, but k2 deleted the dash when it's saved. I'm referring to an artist name so it's critical that it's displayed correctly.
Help?!
Help?!
Please Log in or Create an account to join the conversation.
- Eoin Feeney
-
- Offline
- Premium Member
Less
More
- Posts: 99
13 years 1 month ago #64662
by Eoin Feeney
Replied by Eoin Feeney on topic Re: How do I allow a dash in tag names?
Use:
∼
So for example
thanks∼Eoin
Would come out as
thanks-Eoin
There's a thank you button around here somewhere.... :)
∼
So for example
thanks∼Eoin
Would come out as
thanks-Eoin
There's a thank you button around here somewhere.... :)
Please Log in or Create an account to join the conversation.
- kristofferrom
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 28
13 years 1 month ago #64663
by kristofferrom
Replied by kristofferrom on topic Re: How do I allow a dash in tag names?
Lovely! Worked like a charm.
Actually I can't find the thank you button but THANK YOU SO MUCH :)
Actually I can't find the thank you button but THANK YOU SO MUCH :)
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
- Offline
- Platinum Member
Less
More
- Posts: 404
12 years 8 months ago - 12 years 8 months ago #64664
by Odin Mayland
Replied by Odin Mayland on topic Re: How do I allow a dash in tag names?
Good solution even thought ∼ makes a ~ tilde on my site.
But I can't ask my clients to type ∼ between words that require a dash.
Has anyone come up with a override that makes the dash in tags display?
But I can't ask my clients to type ∼ between words that require a dash.
Has anyone come up with a override that makes the dash in tags display?
Please Log in or Create an account to join the conversation.
- John Wargo
-
- Offline
- New Member
Less
More
- Posts: 7
12 years 3 months ago #64665
by John Wargo
Replied by John Wargo on topic Re: How do I allow a dash in tag names?
I don't want a tilde in my tags, why can't I have a dash? Seems like it's something that could be easily supported. I want to add a tag for on-premise, it's a dashed word. Tilde won't work.
Please Log in or Create an account to join the conversation.
- Ralf Longwitz
-
- Offline
- Junior Member
Less
More
- Posts: 35
11 years 11 months ago #64666
by Ralf Longwitz
Replied by Ralf Longwitz on topic Re: How do I allow a dash in tag names?
Same issue here. We need dashes in tags. Why not? Why are they stripped?
Please Log in or Create an account to join the conversation.
- Matt Thomas
-
- Offline
- New Member
Less
More
- Posts: 9
11 years 9 months ago #64667
by Matt Thomas
Replied by Matt Thomas on topic Re: How do I allow a dash in tag names?
Dashes seem to be removed by /administrator/components/com_k2/models/tag.php:79this too is an issue for me as my client has tags that contain proper names that need the dash. I don't see why they'd be filtered out.
One workaround is to use –
$tag = str_replace('-', '', $tag);
One workaround is to use –
Please Log in or Create an account to join the conversation.
- Matt Thomas
-
- Offline
- New Member
Less
More
- Posts: 9
11 years 9 months ago #64668
by Matt Thomas
Replied by Matt Thomas on topic Re: How do I allow a dash in tag names?
From code.google.com/p/getk2/issues/detail?id=256#c1, it appears this is an issue related to conflicts with Joomla's router.
Please Log in or Create an account to join the conversation.
- Anna Petyaeva
-
- Offline
- New Member
Less
More
- Posts: 18
11 years 1 week ago #64669
by Anna Petyaeva
Replied by Anna Petyaeva on topic Re: How do I allow a dash in tag names?
THANK YOU for – Matt Thomas !!!! It's great. The problem exists for several years and still NO EXIT... Really strange
Please Log in or Create an account to join the conversation.