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
Quote Reply
Re: [Matthias70] Tag Cloud from Title Words In reply to
Hi,

Not sure what you mean by a "tag cloud" ... can you give me an example?

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

Last edited by:

Andy: Feb 20, 2012, 1:22 AM
Quote Reply
Re: [Andy] Tag Cloud from Title Words In reply to
Hi Andy,
you can see two tagclouds at the bottom of my page.
www.gpaed.de

They rely on the number of searchwords and the number of links in category.
Would be great to have a tag cloud from the words in the title. The more a word is in the title field, the bigger the print out of the tag...

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Tag Cloud from Title Words In reply to
Ah ok, so basically if we had the word "Test" in the title/description multiple times, it should show in the "cloud" with a larger font?

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Tag Cloud from Title Words In reply to
Yes, that's it.
At the moment the globals shows only words from the title, but the combination title/description would be interesting, too.

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Tag Cloud from Title Words In reply to
Ok, will try and have a look for you later on. In the middle of another job atm, which I need to concentrate on :)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates