Is there a way to use Drupal's extensive pager support with non-sql data? It looks to me like it's pretty much wired to database/sql situations. Thanks, -Randy -- Randy Fay Drupal Development, troubleshooting, and debugging randy@randyfay.com +1 970.462.7450
Hi, Yes there is but is it a bit difficult. I have done this for one of my projects. I will direct you to some code. if you take a look at http://drupalcode.org/viewvc/drupal/contributions/modules/gitbrowser/gb.inc?... basically you just need to see $pager_page_array and $pager_total before you call theme('pager') Gordon. On 08/04/2010, at 1:42 AM, Randy Fay wrote:
Is there a way to use Drupal's extensive pager support with non-sql data? It looks to me like it's pretty much wired to database/sql situations.
Thanks, -Randy
-- Randy Fay Drupal Development, troubleshooting, and debugging randy@randyfay.com +1 970.462.7450
You can use it by utilizing the globals for the pager stuff and then calling the pager theme. My suggestion would be to look at the Drupal Sphinx module: http://drupal.org/project/sphinxsearch You can see how it's done in sphinxsearch.common.inc in the function sphinxsearch_pager(); Jamie Holly http://www.intoxination.net http://www.hollyit.net On 4/7/2010 11:42 AM, Randy Fay wrote:
Is there a way to use Drupal's extensive pager support with non-sql data? It looks to me like it's pretty much wired to database/sql situations.
Thanks, -Randy
-- Randy Fay Drupal Development, troubleshooting, and debugging randy@randyfay.com <mailto:randy@randyfay.com> +1 970.462.7450
this code is years old, but pager has hardly changed: http://drupalcode.org/viewvc/drupal/contributions/tricks/pager_without_a_que... On Wed, Apr 7, 2010 at 11:42 AM, Randy Fay <randy@randyfay.com> wrote:
Is there a way to use Drupal's extensive pager support with non-sql data? It looks to me like it's pretty much wired to database/sql situations.
Thanks, -Randy
-- Randy Fay Drupal Development, troubleshooting, and debugging randy@randyfay.com +1 970.462.7450
Wow, Gordon, Jamie, Moshe, did that ever help. I had the ugliest pseudo-pager in there, and now it's Drupal-standard. Much appreciated! -Randy On Wed, Apr 7, 2010 at 10:48 AM, Moshe Weitzman <weitzman@tejasa.com> wrote:
this code is years old, but pager has hardly changed:
http://drupalcode.org/viewvc/drupal/contributions/tricks/pager_without_a_que...
On Wed, Apr 7, 2010 at 11:42 AM, Randy Fay <randy@randyfay.com> wrote:
Is there a way to use Drupal's extensive pager support with non-sql data? It looks to me like it's pretty much wired to database/sql situations.
Thanks, -Randy
-- Randy Fay Drupal Development, troubleshooting, and debugging randy@randyfay.com +1 970.462.7450
-- Randy Fay Drupal Development, troubleshooting, and debugging randy@randyfay.com +1 970.462.7450
participants (4)
-
Gordon Heydon -
Jamie Holly -
Moshe Weitzman -
Randy Fay