xoops forums

bjuti

Just can't stay away
Posted on: 2010/9/19 12:29
bjuti
bjuti (Show more)
Just can't stay away
Posts: 871
Since: 2009/1/7 2
#1

Tag module, multiple words as tags

Hi there

Is it possible in Tag module to have more than one word as a tag... eg. xoops cms, nokia phone..... etc.. instead of just one word? It's tricky when you must do tag that's phrase, like 'economic stagnation' etc..

Tnx

ghia

Community Support Member
Posted on: 2010/9/19 13:06
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#2

Re: Tag module, multiple words as tags

Maybe use underline in stead of space? Eg economic_stagnation

bjuti

Just can't stay away
Posted on: 2010/9/19 13:17
bjuti
bjuti (Show more)
Just can't stay away
Posts: 871
Since: 2009/1/7 2
#3

Re: Tag module, multiple words as tags

That's the way i'm using it now, but it's ugly solution, and the clents are not happy with it :) They saw eg. Wordpress sites and say that they want that. :)

playsome

Not too shy to talk
Posted on: 2010/9/19 20:07
playsome
playsome (Show more)
Not too shy to talk
Posts: 197
Since: 2009/4/15
#4

Re: Tag module, multiple words as tags

I would also like to see this feature in the tag module.

I think it would require hacking hte module code to make only comma a valid dilimiter then for the url though you would need to replace the space with _ and im not sure how you would do that.

ghia

Community Support Member
Posted on: 2010/9/20 5:44
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#5

Re: Tag module, multiple words as tags

I don't think there is a preference for it, so try altering /modules/tag/include/functions.ini.php near the bottom
return array(","" ""|"";");

=>
return array(",""|"";");

bjuti

Just can't stay away
Posted on: 2010/9/20 7:36
bjuti
bjuti (Show more)
Just can't stay away
Posts: 871
Since: 2009/1/7 2
#6

Re: Tag module, multiple words as tags

Tnx, I'll try that.

iunderwood

Friend of XOOPS
Posted on: 2010/9/20 12:15
iunderwood
iunderwood (Show more)
Friend of XOOPS
Posts: 190
Since: 2008/5/3 4
#7

Re: Tag module, multiple words as tags

Please let me know that modification works. I was just about to ask the same question.
++I;
Resized Image

bjuti

Just can't stay away
Posted on: 2010/9/20 14:14
bjuti
bjuti (Show more)
Just can't stay away
Posts: 871
Since: 2009/1/7 2
#8

Re: Tag module, multiple words as tags

Hack with removing space from delimiters doesn't work (tested in publisher).

tzvook

Just can't stay away
Posted on: 2012/2/3 16:53
tzvook
tzvook (Show more)
Just can't stay away
Posts: 875
Since: 2003/2/1 2
#9

Re: Tag module, multiple words as tags

Has someone succeeded with this ?

tzvook

Just can't stay away
Posted on: 2012/2/4 19:35
tzvook
tzvook (Show more)
Just can't stay away
Posts: 875
Since: 2003/2/1 2
#10

SOLVED: Tag module, multiple words as tags

Well, made it work ....
2 changes I made, one of them (if not both) is doing the work ...
===========================================
edit /modules/tag/language/english/config.php

old line (24)
----------------------------
$GLOBALS["tag_delimiter"] = array(",", " ", "|", ";");

new line
---------------------------
$GLOBALS["tag_delimiter"] = array(",", "|", ";");

===========================================
edit /modules/tag/include/functions.ini.php

old line (88)
----------------------------
return array(",", " ", "|", ";");

new line
---------------------------
return array(",", "|", ";");

===========================================