Questions tagged [paging]

The process of splitting the result of a query on different pages is called, in Drupal terminology, paging.

Filter by
Sorted by
Tagged with
1
vote
5answers
4k views

Pager not displaying

I am having problems getting a pager to display after a table in the block_view hook of a module The code for the query is the following one. $query = db_select('registry', 'r'); $query = $query->...
8
votes
1answer
205 views

Does DRUPAL_CACHE_PER_PAGE count pager pages (i.e. frontpage?page=3)?

I guess my whole question is pretty much in the title... I'm wondering if blocks that use DRUPAL_CACHE_PER_PAGE get cached on pager pages (i.e. mysite.com/frontpage?page=3), or if the pager query is ...
1
vote
1answer
690 views

Next/Prev buttons for nodes based on nodereference field

By using this tutorial http://blog.urbaninsight.com/2011/09/12/adding-pager-navigation-nodes-drupal-7 I have created next/prev buttons for my images. But as I have a lot of galleries and I need to ...
0
votes
2answers
688 views

Always show next page link in pager

function mythemename_pager_next($text, $limit, $element = 0, $interval = 1, $parameters = array()) { global $pager_page_array, $pager_total; $output = ''; // If we are anywhere but the last ...
1
vote
1answer
358 views

How to expose to users filter for changing views items limit for pagination? [closed]

As in question, is this possible via UI or only custom form must be created?
0
votes
3answers
2k views

Custom Javascript Not Loading On Paginated Pages (Except First Page)

I am running the following jQuery that affects elements on a page view. $(document).ready(function($){ $(".views-field-field-video").click(function() { $(this).parent(...
1
vote
3answers
841 views

Add next/prev link to image in drupal 7

I have a taxonomy with lots of nodes in it. Each node contains a large image. I want that image to be linked to the next node within the taxnomy. How can I do this in Drupal 7?
2
votes
3answers
2k views

More than one pager in the same page

I have a Page that contains two views one that list the latest news and the other list the latest event The problem now is that each view has a pager but when I change the page of one of them both ...
11
votes
3answers
8k views

Views Page not showing pager

I've got a Views Page showing Article teasers. There are lots of Articles in the db and I'm only showing 5 per page in the View, but the Pager is not showing up at all. Here is my Views configuration, ...
1
vote
1answer
551 views

how to use image for next previous link in pager in drupal 7

I am woking on drupal 7 I want to change link text and replace them with image. How can I achieve following: Is there any function in template.php to do so? Is there any way to overridden template to ...
1
vote
1answer
775 views

how to achieve a sliding effect to show the rest of elements in a grid, with views

I have a view set to grid, displaying 5 items per column. I set it to display 5 items at a time too, but I have 10 items total. What i want to achieve is, when I click on page 2, instead of having it ...
6
votes
1answer
4k views

How do I use theme('pager')?

I have problem to understand how I should use theme('pager') as explained on EntityFieldQuery display pager. I can't make it work (display pager and links to resulting pages). Does pager(10) in ...
0
votes
2answers
3k views

Adding pagination to nodes

I'm using Drupal 7, CKEditor (not wysiwyg module). By default the nodes are not paginated but the client wants to have nodes of certain content-type to be paginated. And wants control of this ...
2
votes
2answers
2k views

how to add a class to the widget pager of views slideshow

I want to add a class to the widget pager of views slideshow. I found the function in the file /theme/views_slideshow.theme.inc wich theme the wrapper of the widget function ...
0
votes
2answers
1k views

Panels and pager in the pane

Is it possible to load next page of the view inside a pane (by using pager)?
1
vote
0answers
586 views

Use a content type's field as a pager item in Views

I'm creating a very custom slideshow with views. It has a content type that has a photo field, some text fields and a thumbnail field. I would like to have my thumbnail field set as the pager items. ...
3
votes
0answers
321 views

How to display a pager [duplicate]

I have example of fetching multiple nodes with EntityFieldQuery, but i am not able to show pager. (intial question here: EntityFieldQuery display pager) if ($type == 21) { $query = new ...
6
votes
2answers
7k views

EntityFieldQuery display pager

How do I display pager using EntityFieldQuery for fetch results? I can't find complete example. I am doing simmilar to: Sortable, paged table retrieved using EntityFieldQuery But I miss part to ...
1
vote
3answers
2k views

Comment pagers in D7: They appear even when the page has only 1 comment!

I have this Drupal 7 site (updated from my D6 site). I have nodetypes wich allows comments. I have the pager for comments at the very end of the comment lists that shows (as you can imagine) the ...
1
vote
1answer
269 views

display only one comment in node page

I'd like to display only 1 comment (the most recent one) in node page. And I don't want the pager to be displayed too. Is there any way to do it without writing custom module? Could I use ...
1
vote
1answer
877 views

Include HTML in theme_pager_next $text variable?

Is it possible to include markup in the $text variable of theme_pager_next()? I find that whatever I set the variable to gets output as a string, rather than being rendered as HTML. Here's some ...
1
vote
1answer
140 views

how to apply two themes for an element in custom module?

In the custom field module that i have written, i am trying to use two themes for same element. One is pager theme and another one is item_list theme .. I want to make both of these themes work for ...
0
votes
1answer
300 views

Multiple pagination of arbitrary array of objects

I have an array with this structure: $things = array('term1' => array(Object, Object, ... Object), 'term2' => array(Object, Object, ... Object), 'term3' => ...
7
votes
3answers
2k views

How should I deal with Views URL parameter “page” in Google web master tool?

I have node view which has pager with URL parameter "page". I want Google bot crawls all the pages ( page=1 page=2 page=3... ) but regard all of them as just one and only the first page (without ...
1
vote
2answers
1k views

Template name convention for view mini pager

I'm trying to understand drupal's theming system and I thought I was doing quite well when, all of a sudden, I tried to create a custom template for the mini pager of the views module. I'm struggling ...
0
votes
2answers
1k views

Views pagination based on taxonomy terms

I have an archive Views page in Drupal 7 that is paginated after 10 items, themselves grouped and sorted by a taxonomy term ("issue date"). I've been asked whether it's at all possible to make the ...
2
votes
1answer
1k views

Paging data from a web service

I'm working on a module that uses soap to fetch data from a webservices. Data are ok, and I'll use theme functions to display them as a list. I should also to split results in pages, like views. Is ...
3
votes
4answers
10k views

How to add alphabetized pager using glossary view?

I have a member's directory that lists the last name, first name of all the users on the site, as well as other custom field values about the members. I created a view, added contextual filter for ...
1
vote
1answer
108 views

paging an array result in D7

I have a Query like this: $query = db_select('nid_tid', 'nt') ->fields('nt') ->condition('terms', $name,'='); $result=$query->execute(); $row=$result->fetchAssoc(); $nid =$row['nid']; $...
1
vote
1answer
401 views

Drupal 7 - Retain checkbox values across pages

In Drupal 7, I am using tableselect theme with PagerSelect to generate table with checkboxes and pagination. Any thoughts on how to retain checkbox values on pagination?
2
votes
1answer
3k views

Remove pager from frontpage

On the frontpage of my drupal site I have set up multiple blocks that display content from different views however, in the Content block region my news block is showing a pager that I am unable to ...
0
votes
1answer
533 views

Views Full Pager alignment

What would be the easiest way to make the Views PAGER text on a view aka first previous next etc, align center in the view? Thank you!
1
vote
1answer
282 views

Views pager when view is running on Node Id

I have a view with a contextual filter of Nid running to display the current node. Does anyone know of a way to set up pagers within a view that can handle paging to next/prev nodes? So a 'next' link ...
3
votes
0answers
2k views

Views AJAX pager is not working for custom theme

I am using a custom theme for my Drupal site. Here I have created views with page displays, Kept AJAX pager 'on'. When I click on next the pager keeps on loading. In firebug I found the following ...
1
vote
1answer
956 views

How can I add pager to the comments of advanced forum in drupal 7?

I use the drupal 7 core forum with advanced forum module. This works perfectly except the forum topic page show only post comments what number is defined on the content type, and no pager on the ...
0
votes
2answers
785 views

Change pager text

I need to change the text that appears in pagers (first/previous/next/last). I would really prefer to not get into the overhead (and sloppiness IMO) of a string override module. Pager.inc seems ...
3
votes
1answer
1k views

Is theme('pager') designed to work only with dynamic query?

I have a custom callback function that queries data from a custom table. The trimmed version of code that I have been writing looks as below, function cb_user_cashback_orders($account) { $sql = '...
0
votes
1answer
432 views

My pager disappears when I use hook_views_pre_execute

I need to modify a query of one view. So, I use the hook_views_pre_execute. The query is modified but the pager disappears. My question is why? Do I need to add more lines to hook to use to display ...
0
votes
2answers
2k views

Views not showing Pager

I created a Views out of some nodes and displaying it. And I've done views theming of type Row style output and saved the file in following format views-view-fields--[views machine name].tpl.php. All ...
3
votes
0answers
162 views

Change views items per page dynamically [duplicate]

Possible Duplicate: How do I limit the number of Views results on specific pages? I have a view that I use for showing different items on my website. It is a very simple view that accept taxonomy ...
1
vote
1answer
6k views

jQuery error “C is undefined” while making ajax call for pagination

I am using Ajax for pagination for a form in Drupal 6 project. It is working fine on my local machine with default theme but on live server it gives me an error and generates another pagination links ...
2
votes
1answer
3k views

How to get all records of a view with paging?

I have a view with 20 records, displaying 10 records on each page. I have a field check-box with custom handler to check and uncheck each record. I am using the $this->view->results to loop ...
1
vote
0answers
87 views

Adding a region to the individual item pages under a node in the gallery assist module

I'm trying to force a region into the individual item pages of a node that's using the gallery assist module to be able to display blocks. I started off making a context and adding the gallery assist ...
0
votes
4answers
2k views

Find item position in the pager

I was wondering how I am able to find the position of an item in a views pager? I have nodes listed using views (with pager, 20 every page), and I'd like to find out for example where in the pager ...
1
vote
1answer
544 views

System pager isn't showing for logged in users

I'm using Panels 7.x-3.2 on Drupal 7.12. I have the Panels Taxonomy term template enabled and for some reason, there's no pager being rendered below the content. You can manually append ?page=x to the ...
3
votes
2answers
2k views

Multiple blocks on single page, pager issue

I have 3 blocks made by views on the front page. Each have 4 of the newest node teasers showing with a pager to see the rest. However, when I click on one of the pager's next button, it will load the ...
1
vote
1answer
141 views

Database Pager for a new entity type

I have implemented a new entity type that requires paged access to DB and meet a probem with several pagers for independent entities on the same theme page. The problem is that that entity can be ...
0
votes
2answers
1k views

Paging & panels

I have a site with a front page that is built up with different blocks; some of these have paging activated. They work great because they are Ajax controlled. When you scroll all the way down to the ...
2
votes
1answer
512 views

If a pager is missing, then appears when using another theme, does that narrow the problem to the original theme?

I have a pager missing from one page, while visible on another. These pages are generated by my custom module. I'm working with a custom theme that's been hacked together (wasn't me!) When I switch ...
0
votes
1answer
375 views

Refresh button instead pager in views

Recently I developed a cg related image gallery with drupal, here: http://cgart.ir/en. top rated images displayed in quicktabs and provided by views. I need a refresh button instead pager. currently ...

1
4 5 6
7
8