Home : Products : Gossamer Links : Discussions :

Products: Gossamer Links: Discussions: Re: [joeybone] Complete list of links: Edit Log

Here is the list of edits for this post
Re: [joeybone] Complete list of links
New global "load_all_links"

Code:
sub {

my $tbl = $DB->table('Links');
$tbl->select_options("ORDER BY Title DESC");
my $sth = $tbl->select( { isValidated => "Yes" } );

my @loop;
while (my $hit = $sth->fetchrow_hashref) {
$hit->{detailed_url} = $CFG->{build_detail_url} . "/" . $DB->table('Links')->detailed_url( $hit->{ID} );
push @loop, $hit;
}

return { all_links_loop => \@loop }

}

Then call with:

Code:
<%load_all_link%>
<%loop all_links_loop%>
<%include link.html%>
<%endloop%>

Pretty simple :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Jun 9, 2010, 11:26 PM

Edit Log: