Gossamer Forum
Quote Reply
Re: [Jesus] Sorting In reply to
Hi Jesus,
at the moment the "tag cloud global" picks up every category name. I have four different sport categories on my page and the global shows them all. To have different names for each global would mean to rename the categories, so I tried to give some information by the title/alt-tag.
Maybe there is a way to show the full_name for each cat in the tag cloud, but that's to much text I think...

That's the global I'm using:
Code:
sub {
my $category = $DB->table('Category');
$category->select_options('ORDER BY Name');
my $sth = $category->select( ['Has_New_Links','Number_of_Links','Name','Full_Name'] );
my @cats;
while (my $cat = $sth->fetchrow_hashref) {
$cat->{URL} = $category->as_url($cat->{Full_Name}) . "/$CFG->{build_index}";
push @cats, $cat;
}
return { new_categories => \@cats };
}

That's the html in my tag.html
Code:
<%tags%>
<%loop new_categories%>
<%if Number_of_Links > 200%>
<big><big><b>
<a href="<%URL%>" title="<%Full_Name%>"><%Name%></a>
</big></big></b> -
<%elseif Number_of_Links > 100 eq < 200%>
<b><big>
<a href="<%URL%>" title="<%Full_Name%>"><%Name%></a>
</big></b> -
<%elseif Number_of_Links > 50 eq < 100%>
<b>
<a href="<%URL%>" title="<%Full_Name%>"><%Name%></a>
</b> -
<%elseif Number_of_Links > 25 eq < 50%>
<a href="<%URL%>" title="<%Full_Name%>"><%Name%></a>
-
<%else%>
<small>
<a href="<%URL%>" title="<%Full_Name%>"><%Name%></a>
</small> -
<%endif%>
It's far away from perfect but working for me ;-)

Matthias

Matthias
gpaed.de
Subject Author Views Date
Thread Active categories gotze 16738 Apr 17, 2005, 4:43 AM
Thread Re: [gotze] Active categories
Alba 15896 Apr 17, 2005, 5:33 AM
Thread Re: [Alba] Active categories
gotze 15936 Apr 17, 2005, 5:56 AM
Post Re: [gotze] Active categories
Alba 15862 Apr 17, 2005, 6:33 AM
Thread Active categories global
gotze 15824 Apr 23, 2005, 1:26 PM
Thread Re: [gotze] Active categories global
gotze 15962 Apr 23, 2005, 1:36 PM
Post Re: [gotze] Active categories global
gotze 15816 May 7, 2005, 7:00 PM
Thread Re: [gotze] Active categories
brewt 15843 May 9, 2005, 7:47 PM
Post Re: [brewt] Active categories
Payooo 15729 May 9, 2005, 11:47 PM
Thread Re: [brewt] Active categories
gotze 15804 May 10, 2005, 12:35 AM
Thread Re: [gotze] Active categories
brewt 15834 May 10, 2005, 12:47 AM
Post Re: [brewt] Active categories
Payooo 15767 May 10, 2005, 12:59 AM
Thread Re: [brewt] Active categories
gotze 15815 May 10, 2005, 1:04 AM
Thread Re: [gotze] Active categories
brewt 15786 May 10, 2005, 1:20 AM
Thread Re: [brewt] Active categories
brewt 15685 May 10, 2005, 1:23 AM
Thread Sorting
gotze 15775 May 10, 2005, 7:21 AM
Thread Re: [gotze] Sorting
Matthias70 15309 Sep 25, 2007, 1:48 PM
Thread Re: [Matthias70] Sorting
Andy 15365 Sep 26, 2007, 6:35 AM
Post Re: [Andy] Sorting
Matthias70 15273 Sep 26, 2007, 8:56 AM
Thread Re: [Andy] Sorting
Andy 15311 Sep 26, 2007, 9:09 AM
Thread Re: [Andy] Sorting
Matthias70 15277 Sep 26, 2007, 9:47 AM
Thread Re: [Matthias70] Sorting
Andy 15296 Sep 26, 2007, 9:51 AM
Thread Re: [Andy] Sorting
Matthias70 15245 Sep 26, 2007, 10:01 AM
Thread Re: [Matthias70] Sorting
Matthias70 15295 Sep 26, 2007, 10:24 AM
Thread Re: [Matthias70] Sorting
Matthias70 6928 Sep 26, 2007, 12:25 PM
Thread Re: [Matthias70] Sorting
Andy 6919 Sep 27, 2007, 1:03 AM
Thread Re: [Andy] Sorting
Matthias70 6946 Sep 27, 2007, 5:38 AM
Thread Re: [Matthias70] Sorting
Jesus 6861 Oct 2, 2007, 2:27 PM
Thread Re: [Jesus] Sorting
Matthias70 6889 Oct 2, 2007, 3:11 PM
Post Re: [Matthias70] Sorting
Jesus 6815 Oct 2, 2007, 11:11 PM
Thread Re: [Matthias70] Sorting
Matthias70 6690 Apr 13, 2008, 11:39 AM
Thread Re: [Matthias70] Sorting
Andy 6730 Apr 13, 2008, 12:03 PM
Thread Re: [Andy] Sorting
Matthias70 6763 Apr 13, 2008, 12:41 PM
Thread Re: [Matthias70] Sorting
Andy 6754 Apr 13, 2008, 1:29 PM
Thread Re: [Andy] Sorting
Matthias70 6690 Apr 13, 2008, 2:17 PM
Post Re: [Matthias70] Sorting
Andy 6659 Apr 14, 2008, 12:15 AM
Post Re: [brewt] Active categories
brewt 15715 May 10, 2005, 12:57 AM