Closed (fixed)
Project:
Views (for Drupal 7)
Version:
5.x-1.6
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Mar 2008 at 13:29 UTC
Updated:
15 Aug 2008 at 20:02 UTC
i created a view ,checked "Provide Page View ", and set "Nodes per page" as 10.
then the page looked like this:
*****
*****
*****
.......1 2 next › last »
how can i get the count of the page?
just like this:
*****
*****
*****
.......1 2 next › last » total: 78 pages
Comments
Comment #1
mshaver commentedI added the total pages to the theme_pager function in my template.php file. This function has the global variable $pager_total and you can add the $pager_total_items as well. Here is the phptemplate theme I used:
Comment #2
breaddawson commentedthank u very much!!
it works!!!
Comment #3
runacid commentedif you set $view = views_build_view('type', $myview, array(), NULL, NULL) in your template you can access the total number of items using $view->num_rows.
Comment #4
moshe weitzman commentedComment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.