hi..
i messed up and that code was for search results!
ok.. for category pages...
find this code in nph-build.cgi... sub build_category_pages
Code:
# Create the main page.
open (CAT, ">$dir/$build_index") or &cgierr ("unable to open category page: $dir/$build_index. Reason: $!");
print CAT &site_html_category;
close CAT;
add this before it
Code:
$pagenumber = $page_num;
$page_of = $total_pages;
also go down a little and find:
Code:
$links = "";
$l = 0;
LINK: for ($i = 0; $i < $build_links_per_page; $i++) {
%tmp = &array_to_hash ($i, @{$links{$cat}});
last LINK if ($tmp{$db_key} eq "");
$links .= &site_html_link (%tmp);
}
and add this before it..
Code:
$pagenumber = $page_num;
$page_of = $total_pages;
if you use templates.. in site_html_templates.pl find
sub site_html_category {
find:
Code:
build_links_per_page => $build_links_per_page,
add this after:
Code:
pagenumber => $pagenumber,
page_of => $page_of,
then in category.html put this wherever..
Page <%pagenumber%> of <%page_of%>
or if you don't use templates..
just put this anywhere in sub site_html_category in site_html.pl
Page $pagenumber of $page_of