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!
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
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