You can do something similar to above.
Create a global called 'calculate_category_offset'
my $title = shift;
my $nh = ($title =~ /Page\s(\d*)$/) ? $1 : 1;
return { category_offset => ($nh - 1) * $CFG->{build_links_per_page} };
}In your category template, place the following code:
<%calculate_category_offset($title)%>
<%loop links_loop%>
<%include link.html%>
<%endloop%>In the link.html template, put the following code:
<%row_num + $category_offset%>.
<%endif%>
Ivan
-----
Iyengar Yoga Resources / GT Plugins
Create a global called 'calculate_category_offset'
Code:
sub { my $title = shift;
my $nh = ($title =~ /Page\s(\d*)$/) ? $1 : 1;
return { category_offset => ($nh - 1) * $CFG->{build_links_per_page} };
}
Code:
<%set category_page = 1%> <%calculate_category_offset($title)%>
<%loop links_loop%>
<%include link.html%>
<%endloop%>
Code:
<%if category_page%> <%row_num + $category_offset%>.
<%endif%>
Ivan
-----
Iyengar Yoga Resources / GT Plugins