Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Koki] Sort Specific Links like 1,5,9,12 etc.

Quote Reply
Re: [Koki] Sort Specific Links like 1,5,9,12 etc. In reply to
I have found this global code from Laura ( if you allow me , Laura ). Is it possible to be modifyed to control the LINKS db so they can be displayed the way I am looking? Interesting is the code on the last 5-6 lines where if it is eq to a No will insert something.....any ideas if that can be used?

sub {
# -------------------------------------------------------------------
my $tags = shift;
my $cat_db = $DB->table('Category');
$cat_db->select_options ('ORDER BY Full_Name');
my $sth = $cat_db->select (['Full_Name','ID','Name'] );
my $output=qq~<table><tr valign=top><td width="25%"><table>~;
my $i=0;
while (my ($cat,$ID,$heading) = $sth->fetchrow_array) {
$i++;
my $url1 = $cat_db->as_url($cat);
$output.= qq~<tr><td>~;
my $depth = ($cat =~ tr/\///);
if ($depth > 0){$output .= "&nbsp;&nbsp;"x$depth."<font size=-1>";}
else {$output.="<b>";}
$output.=qq~<a href="$CFG->{build_root_url}/$url1" class="toc">$heading</a>~;
if ($depth > 0){$output .= "</font>";}
else {$output.="</b>";}
$output.=qq~</td></tr>~;
if (($i eq '13')or ($i eq '19') or ($i eq '33') or ($i eq '40')){ $output.=qq~</table></td><td width="25%"><table align=top>~;}
}
$output.="</table></td></tr></table>";
return $output;
}
Subject Author Views Date
Thread Sort Specific Links like 1,5,9,12 etc. Koki 3125 Mar 24, 2005, 9:45 AM
Post Re: [Koki] Sort Specific Links like 1,5,9,12 etc.
Koki 3041 Mar 24, 2005, 1:40 PM
Post Re: [Koki] Sort Specific Links like 1,5,9,12 etc.
Koki 3024 Mar 24, 2005, 2:54 PM
Thread Re: [Koki] Sort Specific Links like 1,5,9,12 etc.
Koki 3027 Mar 24, 2005, 7:04 PM
Thread Re: [Koki] Sort Specific Links like 1,5,9,12 etc.
webmaster33 3056 Mar 25, 2005, 7:25 AM
Thread Re: [webmaster33] Sort Specific Links like 1,5,9,12 etc.
Koki 3007 Mar 25, 2005, 12:03 PM
Thread Re: [Koki] Sort Specific Links like 1,5,9,12 etc.
webmaster33 3010 Mar 25, 2005, 2:38 PM
Thread Re: [webmaster33] Sort Specific Links like 1,5,9,12 etc.
Koki 2988 Mar 25, 2005, 5:21 PM
Post Re: [Koki] Sort Specific Links like 1,5,9,12 etc.
webmaster33 3004 Mar 26, 2005, 2:05 AM