Gossamer Forum
Quote Reply
Active categories
I would like to have a listing of "active" categories, that is, categories containing new links.

I thought I could do something template-based with <%if Has_New_Links eq 'Yes'%> etc., but can't get it to work, and now think I need a global to do this. I've tried something like:

Code:
sub {
my ($output,$sth,$link);
my $search_db = $DB->table('Links');
$search_db->select_options ('ORDER BY ID DESC');
$sth = $search_db->select ( { isNew => 'Yes', isValidated => 'Yes' });
while ($link = $sth->fetchrow_hashref) {
my $cat_db = $DB->table('Category');
my @root_cats = $cat_db->select ['Full_Name']->fetchall_list;
...

}
return $output;
}
... but can't get it right.

Can anyone help, please?

John
Subject Author Views Date
Thread Active categories gotze 16650 Apr 17, 2005, 4:43 AM
Thread Re: [gotze] Active categories
Alba 15809 Apr 17, 2005, 5:33 AM
Thread Re: [Alba] Active categories
gotze 15847 Apr 17, 2005, 5:56 AM
Post Re: [gotze] Active categories
Alba 15774 Apr 17, 2005, 6:33 AM
Thread Active categories global
gotze 15735 Apr 23, 2005, 1:26 PM
Thread Re: [gotze] Active categories global
gotze 15874 Apr 23, 2005, 1:36 PM
Post Re: [gotze] Active categories global
gotze 15729 May 7, 2005, 7:00 PM
Thread Re: [gotze] Active categories
brewt 15754 May 9, 2005, 7:47 PM
Post Re: [brewt] Active categories
Payooo 15641 May 9, 2005, 11:47 PM
Thread Re: [brewt] Active categories
gotze 15716 May 10, 2005, 12:35 AM
Thread Re: [gotze] Active categories
brewt 15746 May 10, 2005, 12:47 AM
Post Re: [brewt] Active categories
Payooo 15679 May 10, 2005, 12:59 AM
Thread Re: [brewt] Active categories
gotze 15727 May 10, 2005, 1:04 AM
Thread Re: [gotze] Active categories
brewt 15698 May 10, 2005, 1:20 AM
Thread Re: [brewt] Active categories
brewt 15597 May 10, 2005, 1:23 AM
Thread Sorting
gotze 15688 May 10, 2005, 7:21 AM
Thread Re: [gotze] Sorting
Matthias70 15220 Sep 25, 2007, 1:48 PM
Thread Re: [Matthias70] Sorting
Andy 15278 Sep 26, 2007, 6:35 AM
Post Re: [Andy] Sorting
Matthias70 15186 Sep 26, 2007, 8:56 AM
Thread Re: [Andy] Sorting
Andy 15223 Sep 26, 2007, 9:09 AM
Thread Re: [Andy] Sorting
Matthias70 15188 Sep 26, 2007, 9:47 AM
Thread Re: [Matthias70] Sorting
Andy 15208 Sep 26, 2007, 9:51 AM
Thread Re: [Andy] Sorting
Matthias70 15158 Sep 26, 2007, 10:01 AM
Thread Re: [Matthias70] Sorting
Matthias70 15208 Sep 26, 2007, 10:24 AM
Thread Re: [Matthias70] Sorting
Matthias70 6882 Sep 26, 2007, 12:25 PM
Thread Re: [Matthias70] Sorting
Andy 6875 Sep 27, 2007, 1:03 AM
Thread Re: [Andy] Sorting
Matthias70 6902 Sep 27, 2007, 5:38 AM
Thread Re: [Matthias70] Sorting
Jesus 6816 Oct 2, 2007, 2:27 PM
Thread Re: [Jesus] Sorting
Matthias70 6844 Oct 2, 2007, 3:11 PM
Post Re: [Matthias70] Sorting
Jesus 6771 Oct 2, 2007, 11:11 PM
Thread Re: [Matthias70] Sorting
Matthias70 6645 Apr 13, 2008, 11:39 AM
Thread Re: [Matthias70] Sorting
Andy 6685 Apr 13, 2008, 12:03 PM
Thread Re: [Andy] Sorting
Matthias70 6718 Apr 13, 2008, 12:41 PM
Thread Re: [Matthias70] Sorting
Andy 6710 Apr 13, 2008, 1:29 PM
Thread Re: [Andy] Sorting
Matthias70 6645 Apr 13, 2008, 2:17 PM
Post Re: [Matthias70] Sorting
Andy 6615 Apr 14, 2008, 12:15 AM
Post Re: [brewt] Active categories
brewt 15628 May 10, 2005, 12:57 AM