[support] Page pagination in a non query page result.
D. Michel Morelli
michel at ziobuddalabs.it
Mon Jun 4 08:04:55 UTC 2012
Hello all, I'm creating a website and show on the screen a series of titles. These titles do not come from a db query, but from a webservice in which I ask titles of page X. Now I would put to the bottom of the page a pager. I looked a bit around and all said to use a code like:
<code>
$total = $response->response->numFound;
$num_per_page = $_GET['nrResult'];
global $pager_page_array, $pager_total;
pager_default_initialize($total, $num_per_page);
$pager = theme('pager', array('quantity' => 3));
</ code>
But to me it appears:
<code>
1 2 3
</ code>
while I would like:
<code> first previous 1 2 ... 15 16 next end
</ code>
Where is that wrong?
M.
--
Michel 'ZioBudda' Morelli michel at ziobuddalabs.it
Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax)
0200619074 - 3939890025 (mobile)-- Fax: +39-0291390660
http://www.ziobuddalabs.it Skype: zio_budda
More information about the support
mailing list