Vanilla open source was terminated 1 January 2025 by Higher Logic. See this announcement for more information.
[pull #1378] How to tag with two words

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: