Keyword

How do I allow a dash in tag names?

  • kristofferrom
  • kristofferrom's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 6 months 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?!

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

More
12 years 6 months 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.... :)

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

  • kristofferrom
  • kristofferrom's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 6 months 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 :)

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

More
12 years 1 month ago - 12 years 1 month 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?

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

More
11 years 8 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.

More
11 years 4 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.

More
11 years 2 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:79
$tag = str_replace('-', '', $tag);
this 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 –

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

More
11 years 2 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.

More
10 years 4 months 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.


Powered by Kunena Forum