For anyone who wants to number their search results I wrote this mod a while back and figured I would document it:
In search_results.html add this <ol start=<%start%>><%link_results%></ol>
Make sure you link.html has <li> (refer to the previous post to get that done!)
and add this sub routine:
'start' => 'sub {
my $in = shift;
my $nh = $in->{nh};
my $mh = $in->{mh};
$nh = $nh * $mh - $mh;
$nh++;
return $nh;
}',
yeah... (I originally got the idea from lycos a few years ago)
Here is an example: http://www.magicdirectory.com/...i?query=david+blaine (this example probably won't exist too much longer)
Hope this entertains someone,
- Jonathan
In search_results.html add this <ol start=<%start%>><%link_results%></ol>
Make sure you link.html has <li> (refer to the previous post to get that done!)
and add this sub routine:
Code:
'start' => 'sub {
my $in = shift;
my $nh = $in->{nh};
my $mh = $in->{mh};
$nh = $nh * $mh - $mh;
$nh++;
return $nh;
}',
yeah... (I originally got the idea from lycos a few years ago)
Here is an example: http://www.magicdirectory.com/...i?query=david+blaine (this example probably won't exist too much longer)
Hope this entertains someone,
- Jonathan