hey paul,
i took this code:
sub {
my $tags = shift;
my $total = $tags->{link_hits};
my $high = $Links::CFG->{search_maxhits};
my $low = 1;
my $page = $tags->{nh} || 1;
if ($page > 1) {
$low = (($page - 1) * $high) + 1;
}
my $top = ($high + $low > $total) ? $total : (($high + $low) - 1);
return "Viewing $low to $top of $total";
}
and added it to my list of globals and called it display_total. then, i added the tag <%display_total%> to my category.html page under the link section. but, the only thing that is being displayed is:
"Viewing 1 to of"
i have the links set to 10 a page. and i would like it to display this:
Total: 16 Displaying: 1 - 10
could you explain how i i would go about setting that up?
thank you,
eddie
i took this code:
sub {
my $tags = shift;
my $total = $tags->{link_hits};
my $high = $Links::CFG->{search_maxhits};
my $low = 1;
my $page = $tags->{nh} || 1;
if ($page > 1) {
$low = (($page - 1) * $high) + 1;
}
my $top = ($high + $low > $total) ? $total : (($high + $low) - 1);
return "Viewing $low to $top of $total";
}
and added it to my list of globals and called it display_total. then, i added the tag <%display_total%> to my category.html page under the link section. but, the only thing that is being displayed is:
"Viewing 1 to of"
i have the links set to 10 a page. and i would like it to display this:
Total: 16 Displaying: 1 - 10
could you explain how i i would go about setting that up?
thank you,
eddie