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 8782 Feb 19, 2012, 10:44 AM
Thread Re: [Matthias70] Tag Cloud from Title Words
Andy 8660 Feb 20, 2012, 1:22 AM
Thread Re: [Andy] Tag Cloud from Title Words
Matthias70 8640 Feb 20, 2012, 5:59 AM
Thread Re: [Matthias70] Tag Cloud from Title Words
Andy 8635 Feb 20, 2012, 6:04 AM
Thread Re: [Andy] Tag Cloud from Title Words
Matthias70 8623 Feb 20, 2012, 6:08 AM
Thread Re: [Matthias70] Tag Cloud from Title Words
Andy 8636 Feb 20, 2012, 6:10 AM
Thread Re: [Andy] Tag Cloud from Title Words
kailew 8295 Dec 7, 2012, 5:15 AM
Post Re: [kailew] Tag Cloud from Title Words
Andy 8258 Dec 7, 2012, 6:08 AM
Thread Re: [kailew] Tag Cloud from Title Words
tandat 8291 Dec 9, 2012, 12:59 AM
Thread Re: [tandat] Tag Cloud from Title Words
kailew 8229 Dec 11, 2012, 2:10 PM
Thread Re: [kailew] Tag Cloud from Title Words
tandat 8242 Dec 11, 2012, 11:34 PM
Post Re: [tandat] Tag Cloud from Title Words
tandat 8202 Dec 12, 2012, 11:04 PM