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 8846 Feb 19, 2012, 10:44 AM
Thread Re: [Matthias70] Tag Cloud from Title Words
Andy 8720 Feb 20, 2012, 1:22 AM
Thread Re: [Andy] Tag Cloud from Title Words
Matthias70 8700 Feb 20, 2012, 5:59 AM
Thread Re: [Matthias70] Tag Cloud from Title Words
Andy 8696 Feb 20, 2012, 6:04 AM
Thread Re: [Andy] Tag Cloud from Title Words
Matthias70 8683 Feb 20, 2012, 6:08 AM
Thread Re: [Matthias70] Tag Cloud from Title Words
Andy 8696 Feb 20, 2012, 6:10 AM
Thread Re: [Andy] Tag Cloud from Title Words
kailew 8355 Dec 7, 2012, 5:15 AM
Post Re: [kailew] Tag Cloud from Title Words
Andy 8318 Dec 7, 2012, 6:08 AM
Thread Re: [kailew] Tag Cloud from Title Words
tandat 8352 Dec 9, 2012, 12:59 AM
Thread Re: [tandat] Tag Cloud from Title Words
kailew 8289 Dec 11, 2012, 2:10 PM
Thread Re: [kailew] Tag Cloud from Title Words
tandat 8302 Dec 11, 2012, 11:34 PM
Post Re: [tandat] Tag Cloud from Title Words
tandat 8262 Dec 12, 2012, 11:04 PM