Of course I have an idea.... try this global and call it on a template before <%loop links_loop%> (oh yes, this only works with loops):
Code:
sub {
my $tags = shift;
my $cp = ($tags->{title} =~ /^.*Page\s(\d*)/) ? $1 : 1;
my $ds = (($cp-1) * $CFG->{build_links_per_page}) + 1;
my $de = $CFG->{build_links_per_page} * $cp;
if ($tags->{total} < $de) {
$de = $tags->{total};
}
return { current_page => $cp,
display_start => $ds,
display_en => $ds };
}
In link.html, add somthing like near the top:
Code:
<%if display_start%>
<%set current_link_number = $display_start + $row_num - 1%>
<%endif%>
and where you want the number to appear, add
Code:
<%if current_link_number%><%current_link_number%><%endif%>
I haven't tested this (I use similar code, but it's all in a custom plugin, not in a global), but it should work.
Ivan
-----
Iyengar Yoga Resources /
GT Plugins