Gossamer Forum
Skip to Content


Home : Plugins Support - Paid : Top_Weekly_Link :

Choosing which link appears

Quote Reply
Choosing which link appears
Hi,

Is there any way to choose which links appear or is this possible with some other plug-in ?

John
Quote Reply
Re: [jag] Choosing which link appears In reply to
Do you mean "hardcode" in the link that shows up? Its a little tricky, as the whole process is worked on with the assumption that you want to show the most popular link each week :p

Why not just use a simple global?

<%global_name('12345')%> (where 12345 is the ID number of the link you want to show)


Code
sub { 
my $link = $DB->table('Links')->select( { ID => $_[0] } )->fetchrow_hashref;
return Links::SiteHTML::display('link.html', $link);
}


Hope that helps.

Cheers
Andy
Programmer/Designer/LinksSQL Freak Cool

http://www.ultranerds.com
http://www.imagesql.com