Gossamer Forum
Quote Reply
tag global
Hi Andy,
I'm using this global to show tags on my page called from the title of the link.#
Do you know how I define a list of sign and letters to delete them from the results.
I want to delete signs like ?!"()
Cause at the moment in some cases I get tags like word_a? or word_b!

Code:
sub {
my $tags = GT::Template->tags;
my @words = split(/\s+/,$tags->{Title});
my @links;

foreach (@words){
s/^\s*//sg;
s/[\.,]$//sg;
next if length($_)<4;
push(@links,qq|<a href="$CFG->{db_cgi_url}/search.cgi?query=$_">$_</a>|);
}

return join(" - ",@links);

}

Thanks

Matthias
gpaed.de
Subject Author Views Date
Thread tag global Matthias70 5267 Jan 15, 2012, 11:06 AM
Thread Re: [Matthias70] tag global
Andy 5137 Jan 16, 2012, 12:32 AM
Thread Re: [Andy] tag global
Matthias70 5127 Jan 16, 2012, 4:25 AM
Thread Re: [Matthias70] tag global
Matthias70 5050 Jan 17, 2012, 1:43 PM
Thread Re: [Matthias70] tag global
Andy 5018 Jan 17, 2012, 11:50 PM
Thread Re: [Andy] tag global
Matthias70 4990 Jan 18, 2012, 6:30 AM
Thread Re: [Matthias70] tag global
Andy 4986 Jan 18, 2012, 6:31 AM
Post Re: [Andy] tag global
Matthias70 4978 Jan 18, 2012, 6:33 AM