Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
[pull #1378] How to tag with two words
Showfom
New
Best Answer
-
vorapoap New
Ok It seems replacing "Space" with "Comma" will do the trick for both php and javascript...
class.tagmodel.php
public static function ValidateTag($Tag) { return TRUE; }
///...................................///
public static function SplitTags($TagsString) {
$Tags = explode(',', $TagsString);
jquery.tokeninput.js
After replace the file with the one on github at https://github.com/boamaod/Garden/blob/master/plugins/Tagging/jquery.tokeninput.js
Comment out line 186
//case KEY.SPACE:5
Answers
grep is your friend.
Actually, this would be very nice to have. You could make the addon require double space to separate the tags when entering them.
Wouldn't it be better to use quotation marks to start a multi-word tag?
"Dedicated Servers" would be two word tag as Dedicated Servers would end up in two separate tags... It's kind of intuitive too.
Did it. See https://github.com/vanillaforums/Garden/pull/1378/files
I don't think this is done... the TagModel::SplitTag still doesn't work accordingly.
Ok It seems replacing "Space" with "Comma" will do the trick for both php and javascript...
class.tagmodel.php
public static function ValidateTag($Tag) { return TRUE; }
///...................................///
public static function SplitTags($TagsString) {
jquery.tokeninput.js
After replace the file with the one on github at https://github.com/boamaod/Garden/blob/master/plugins/Tagging/jquery.tokeninput.js
Comment out line 186
//case KEY.SPACE: