Hi,

Would it be possible to use "+" instead of "comma" when separating free tags in taxonomy?
So instead of having:
food, apple, red, fruit
We could have:
food + apple + red + fruit

Many thanks

Comments

BayerMeister’s picture

A good idea for what my trouble is.
I need to use the comma in the tag itself and so changing the separator to '+' or ';' would be a solution.
Any progress on this? Though I believe that would be the simplest hack in code ;-)

BayerMeister’s picture

No hack needed. It is enough to enclose tags in double-quotes.

Though there is a bug though I found.

Take song authors as tags. Have a taxonomy with tagging enabled and attached to a nodetype called Song.

Step 1) Create one song with the tags: "Betles, The", "Paul McCartney, jr."

OK, 2 terms were created and the node is linked to them. Don't mind the names, its all totally made up.

Step 2) Create a secon song and use the autocomplete to fill-in just the same two names. There you see the problem...

The problem is, that the autocomplete encloses the 1st name in double-quotes, but when autocompleting the 2nd name the 1st looses it's double quotes. And if you submit something like: Beatles, The, "Paul McCartney, jr." you can be sure you get 3 tags (missing double-quotes around "Beatles, the").

I'll try to file an issue on this.

xxx13xxx’s picture

The separator of free tags should be user changeable.

prabhatjn’s picture

Subscribing.

I hope somebody answer here, it would be great help.

thanks,
Perry.

prabhatjn’s picture

use quotes: "Ghana, Africa", "Japan, Asia"

mikeker’s picture

Also consider the Taxonomy Single Term module. The D7 version exposes a "Single tag autocomplete text field" which can be a single entry or multiple entry field just like regular text fields.

- Mike