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

Re: [gotze] Active categories

Quote Reply
Re: [gotze] Active categories In reply to
Keep it simple, all you need to do is use the Has_New_Links column. Do all the html generation in the code also:
Code:
sub {
my $category = $DB->table('Category');
$category->select_options('ORDER BY Full_Name');
my $sth = $category->select({ Has_New_Links => 'Yes' });
my @cats;
while (my $cat = $sth->fetchrow_hashref) {
$cat->{URL} = "$CFG->{build_root_url}/" . $category->as_url($cat->{Full_Name}) . "/$CFG->{build_index}";
push @cats, $cat;
}
return { new_categories => \@cats };
}
In the loop, you can do your technorati tags:
Code:
<%nameofsub%>
<%loop new_categories%>
<a href="<%URL%>"<%if Number_of_Links > 50%> class="whatever"<%endif%>><%Name%></a>
<%endloop%>

Adrian

Last edited by:

brewt: May 10, 2005, 12:53 AM
Subject Author Views Date
Thread Active categories gotze 16656 Apr 17, 2005, 4:43 AM
Thread Re: [gotze] Active categories
Alba 15815 Apr 17, 2005, 5:33 AM
Thread Re: [Alba] Active categories
gotze 15854 Apr 17, 2005, 5:56 AM
Post Re: [gotze] Active categories
Alba 15780 Apr 17, 2005, 6:33 AM
Thread Active categories global
gotze 15741 Apr 23, 2005, 1:26 PM
Thread Re: [gotze] Active categories global
gotze 15880 Apr 23, 2005, 1:36 PM
Post Re: [gotze] Active categories global
gotze 15735 May 7, 2005, 7:00 PM
Thread Re: [gotze] Active categories
brewt 15761 May 9, 2005, 7:47 PM
Post Re: [brewt] Active categories
Payooo 15647 May 9, 2005, 11:47 PM
Thread Re: [brewt] Active categories
gotze 15722 May 10, 2005, 12:35 AM
Thread Re: [gotze] Active categories
brewt 15752 May 10, 2005, 12:47 AM
Post Re: [brewt] Active categories
Payooo 15685 May 10, 2005, 12:59 AM
Thread Re: [brewt] Active categories
gotze 15733 May 10, 2005, 1:04 AM
Thread Re: [gotze] Active categories
brewt 15704 May 10, 2005, 1:20 AM
Thread Re: [brewt] Active categories
brewt 15603 May 10, 2005, 1:23 AM
Thread Sorting
gotze 15694 May 10, 2005, 7:21 AM
Thread Re: [gotze] Sorting
Matthias70 15226 Sep 25, 2007, 1:48 PM
Thread Re: [Matthias70] Sorting
Andy 15284 Sep 26, 2007, 6:35 AM
Post Re: [Andy] Sorting
Matthias70 15192 Sep 26, 2007, 8:56 AM
Thread Re: [Andy] Sorting
Andy 15229 Sep 26, 2007, 9:09 AM
Thread Re: [Andy] Sorting
Matthias70 15194 Sep 26, 2007, 9:47 AM
Thread Re: [Matthias70] Sorting
Andy 15214 Sep 26, 2007, 9:51 AM
Thread Re: [Andy] Sorting
Matthias70 15164 Sep 26, 2007, 10:01 AM
Thread Re: [Matthias70] Sorting
Matthias70 15214 Sep 26, 2007, 10:24 AM
Thread Re: [Matthias70] Sorting
Matthias70 6887 Sep 26, 2007, 12:25 PM
Thread Re: [Matthias70] Sorting
Andy 6880 Sep 27, 2007, 1:03 AM
Thread Re: [Andy] Sorting
Matthias70 6907 Sep 27, 2007, 5:38 AM
Thread Re: [Matthias70] Sorting
Jesus 6821 Oct 2, 2007, 2:27 PM
Thread Re: [Jesus] Sorting
Matthias70 6849 Oct 2, 2007, 3:11 PM
Post Re: [Matthias70] Sorting
Jesus 6776 Oct 2, 2007, 11:11 PM
Thread Re: [Matthias70] Sorting
Matthias70 6650 Apr 13, 2008, 11:39 AM
Thread Re: [Matthias70] Sorting
Andy 6690 Apr 13, 2008, 12:03 PM
Thread Re: [Andy] Sorting
Matthias70 6723 Apr 13, 2008, 12:41 PM
Thread Re: [Matthias70] Sorting
Andy 6715 Apr 13, 2008, 1:29 PM
Thread Re: [Andy] Sorting
Matthias70 6650 Apr 13, 2008, 2:17 PM
Post Re: [Matthias70] Sorting
Andy 6620 Apr 14, 2008, 12:15 AM
Post Re: [brewt] Active categories
brewt 15634 May 10, 2005, 12:57 AM