Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Tag Cloud from Title Words

Quote Reply
Tag Cloud from Title Words
Hi Andy,
I'm using the global below to print out "tags" from link title on the detail page
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);

}

What do you think?
Is it possible to show a tag cloud relating to the number of words in the link titles?

Thanks

Matthias
gpaed.de
Subject Author Views Date
Thread Tag Cloud from Title Words Matthias70 8793 Feb 19, 2012, 10:44 AM
Thread Re: [Matthias70] Tag Cloud from Title Words
Andy 8670 Feb 20, 2012, 1:22 AM
Thread Re: [Andy] Tag Cloud from Title Words
Matthias70 8650 Feb 20, 2012, 5:59 AM
Thread Re: [Matthias70] Tag Cloud from Title Words
Andy 8645 Feb 20, 2012, 6:04 AM
Thread Re: [Andy] Tag Cloud from Title Words
Matthias70 8633 Feb 20, 2012, 6:08 AM
Thread Re: [Matthias70] Tag Cloud from Title Words
Andy 8646 Feb 20, 2012, 6:10 AM
Thread Re: [Andy] Tag Cloud from Title Words
kailew 8305 Dec 7, 2012, 5:15 AM
Post Re: [kailew] Tag Cloud from Title Words
Andy 8268 Dec 7, 2012, 6:08 AM
Thread Re: [kailew] Tag Cloud from Title Words
tandat 8301 Dec 9, 2012, 12:59 AM
Thread Re: [tandat] Tag Cloud from Title Words
kailew 8239 Dec 11, 2012, 2:10 PM
Thread Re: [kailew] Tag Cloud from Title Words
tandat 8252 Dec 11, 2012, 11:34 PM
Post Re: [tandat] Tag Cloud from Title Words
tandat 8212 Dec 12, 2012, 11:04 PM