Questions tagged [paging]

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

112 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8 votes
2 answers
2k views

Paging a view based on a grouping field?

I'm upgrading a site I created 2 years ago from D6 to D7. In that site, I have a view of items that are grouped according to year, so that the items for each year show up on a separate page -- you ...
cellear's user avatar
  • 81
4 votes
1 answer
701 views

Unlimited field collection pagination in node edit page

In my node I have a field collection which is set to unlimited. How to enable pagination for node edit page, where all items from that field collection are displayed? For display there are couple ...
dmk.i-t's user avatar
  • 153
3 votes
0 answers
997 views

Drupal Ajax pager

Am looking for a solution to implement $form['pager'] = ['#type' => 'pager']; into AJAX callback (without reloading the page). I have read alot of posts concluding there is no a drupal way to do this ...
Ngatia Frankline's user avatar
3 votes
0 answers
718 views

Views Grouping Pagination

Using a view to display links to nodes sorted into categories (using grouped field on taxonomy) it's working great, however there is upwards of 20 nodes per term and I would only like to show 5 at a ...
Ben's user avatar
  • 31
3 votes
0 answers
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 ...
Prasanna's user avatar
2 votes
0 answers
115 views

Different 'Items Per Page' on different pagination while using 'views_infinite_scroll' module

I am using views_infinite_scroll module to load more nodes with 10 nodes on every click and views AJAX is enabled. I am working on a requirement like as, I have 100 total nodes and getting in a view ...
usmanjutt84's user avatar
2 votes
0 answers
126 views

How to change the pagination position

I have created a custom block using Entity Query with pagination to get the data and everything works fine with $render[] = [ '#type' => 'pager', ]; But I can find a way to change the position ...
Greg's user avatar
  • 21
2 votes
0 answers
297 views

Date Pager in Drupal 8

How can I implement a date pager (e.g. as a contextual filter) in Drupal 8 on a custom entity field? It seems to me, that the date_views functionality didn't make it into the core yet, and I can't ...
Kate Heinlein's user avatar
2 votes
0 answers
332 views

$pager_total_items giving wrong results count in custom search module

I am not too sure what happens but in my custom search module, the $GLOBALS['pager_total_items'] count is wrong on the first page. For example, I search for a term and it will display: Showing 1 - 10 ...
MrUpsidown's user avatar
2 votes
1 answer
525 views

Change search results pager to mini pager?

How to change search result's pager to mini pager. I want to change default pager to mini pager in that search result page. Please help me. Thank you.
Viraj's user avatar
  • 347
2 votes
1 answer
337 views

Pager should start from last page instead of first one

I have a block view including pager and shown on front page. when I go to front page I see the pager under block shown in normal way(ie start from first page). But I want that pager start from last ...
WaQaR Ali's user avatar
  • 1,688
2 votes
0 answers
363 views

Views Ajax Pager not working when loading view with ajax

I have a page with a view that has a pager with ajax. the pager is working fine when the page first run. the page has a button that loads the next page using ajax, the view is loaded fine but the ...
Ibrahim Samir's user avatar
2 votes
1 answer
382 views

Paginate results of entity reference widget type

I have entity reference field with checkboxes/radio as the widget type. The issue is the I have hundreds of nodes and this results in a having a big list. Is there a way to paginate the results or ...
anthony's user avatar
  • 121
2 votes
0 answers
800 views

how to add Ajax to the theme pager

How do I load Ajax pager? My code in custom module function organization_news_page(){ if(menu_get_object()){ $node = menu_get_object(); $query = db_select('node', 'n') ->fields('n', array('nid'...
Yuriy Sychenko's user avatar
2 votes
0 answers
241 views

Drupal7 - Views: Different count of elements per page

I have an view for displaying 28 contentelements(teaser). (7 rows á 4 elements) Now there are some elements flagged as "highlighted", so the element size is 2x2 (double width and height), now I want ...
MKweb's user avatar
  • 31
2 votes
1 answer
89 views

How can I print the number of the current pager in Views template?

I have a node View with pager configured Paged output, full pager, Items per page:30 So the view lists only 30 nodes per page. Now I would like to print the number of the current page and the total ...
chinita7's user avatar
  • 1,021
2 votes
0 answers
482 views

Pager information in services_views json response

Is there a suggested mechanism for retrieving pagination/pager information in a JSON response in a services_views configuration? I thought enabling the pager would give me something, but it does not. ...
cybertoast's user avatar
2 votes
0 answers
798 views

Comment pagination for D7?

I am not able to see the comment pagination section, even though I set up the comment field under structure/content-type/name/comment-field. I set the limit of number of comments to display on node to ...
user avatar
1 vote
0 answers
442 views

Paginated ajax form with non-sql data

Using Drupal 8 I created a form to load data from a webservice with ajax below the form. Now i'm trying to add pagination to result, but the paginator is not been loaded, i'm doing something wrong?. I'...
ShiroiKarasu's user avatar
1 vote
0 answers
1k views

View page count in Twig template

I can't seem to figure out how to get all this information in one line in a views template. <div class="pagination--totals"> Page @current_page of @page_count <small>(@total Results ...
xpersonas's user avatar
  • 522
1 vote
2 answers
1k views

Pager labels aren't translated

I have a site using Drupal 8.4.1 with all core language modules enabled, 3 active languages, and where English is the default language. The pager labels (e.g. "Last »") for my own views aren't ...
tomhake1's user avatar
1 vote
0 answers
46 views

Views pager not displaying after slideshow image was deleted

Long story short, I followed both of the guides that can be found here: https://www.youtube.com/watch?v=sXh8Ng9QNaA I made a couple of adjustments, however. I set it up as a block instead of a page ...
ß Chavez's user avatar
1 vote
0 answers
491 views

Rebuild pagination on view after unset

I have a view who display several nodes (more than 10 000), and I display 100 nodes by pages. With a HOOK_views_pre_render(&$view) I browse all the results $view->result and I unset the nodes ...
Cracs's user avatar
  • 175
1 vote
0 answers
21 views

taxonomy terms view with custom alphabar for not listed language

I could solve just part of my problem, check "taxonomy terms view with custom alphabar (for Spanish)". I'm working with two languages, Spanish and Mapudungun, so I have Spanish > Mapudungun and ...
Andrés Chandía's user avatar
1 vote
1 answer
46 views

taxonomy terms view with custom alphabar (for Spanish)

I have a lot of views displaying taxonomy vocabularies with alphabar, the problem is that all the alphabar are by default showing the order for English alphabet, Spanish has ñ and accented letters, at ...
Andrés Chandía's user avatar
1 vote
0 answers
106 views

How do I turn off the Comment Pager for a Type?

I have a Type configured as below, asking for 50 comments per page. However, I'm getting the pager on nodes that have as little as a single comment. I've looked at responses another question. ...
Rick's user avatar
  • 2,954
1 vote
0 answers
95 views

Views pager with anchor on another page?

I'm creating a page that have two sections, one with an image, as a "presentation", and other at the bottom that has a list, created with a View. That list have pagers created with the "Views Simple ...
xecollons's user avatar
  • 153
1 vote
2 answers
81 views

How to call limited data items per page?

I am using one custom module, which is getting data from the database, with the following code. function rs_get_doors() { $doors = array(); $doors_nids = db_select('node', 'n') $doors_nids = $...
DINE's user avatar
  • 139
1 vote
0 answers
24 views

Query doesn't seem to handle the paging

I am running a paginated query on a Drupal 7 site and the page seems to be working correctly (page 1 is the url with a # at the end, page 2 appends ?page=1, page 3 appends ?page=2, etc.). However, ...
Prackeus's user avatar
1 vote
0 answers
179 views

How can I change the number of items in a views View only for the first page?

Hi my friends! This problem is described in an old post which has a solution. The solution works well. But not perfectly. I explain. I have 15 items. I set Views to display 8 items per page. But I ...
George Berkeley's user avatar
1 vote
0 answers
20 views

How to order Alpha Pager by custom field?

I'm working on a D6 installation and I am trying to correct an alpha pager. If you visit vets-hall.org/stories/alphabetical you'll see I have a list of stories that have three custom fields: ...
Troy's user avatar
  • 111
1 vote
1 answer
27 views

How can i set a pagination in detailed page

How can i set a pagination in detailed pages? for example i have 10 pages in common blogs and the main page contain only the description about the content.When we click on the title of the page or ...
Basil TJ's user avatar
1 vote
2 answers
926 views

Is it possible to get the last number of a views pager to display after and before the elipses?

I'm trying to create a custom pager similar to the Amazon pager: < 1 2 3 4 ... 82 > and after a certain point: < 1 ... 7 8 9 10 ... 82 > But, I cant figure out how to display the last ...
DiegoT's user avatar
  • 21
1 vote
1 answer
190 views

Setup links for pagination pages

I have articles/?page=2, I need to make it like articles/page/2 or articles/page-2 How to do so? The Clean Pagination module is enabled and on admin/config/system/cleanpage I added "articles". ...
Petrovici's user avatar
1 vote
1 answer
125 views

Change pager href attribute

I'm new to Drupal and I've a 'pager' link that shows the second page of a block. It's href attribute is set to something like this '?page=0%2C1' I want it to be simply '#'. It worked by setting $...
user48663's user avatar
1 vote
0 answers
57 views

Drupal Core Bartik Theme - Pager Problem

URL: /admin/store/products/attributes/ Uber:7.x-3.8 Drupal:7.37 i haven't this problem with older Drupal versions When I check my att list page in Ubercart with Bartik core theme I see: <...
Mohsen Tabatabaiee's user avatar
1 vote
1 answer
664 views

Views Infinite Scroll and back button issue

I am using Views Infinite scroll module, Drupal 7. When i click on an item and go to next page and then click Browser back button, it takes me back to the start of the page. When i click browser back ...
rav_amadady's user avatar
1 vote
0 answers
47 views

Smart Paging: can it work with custom view mode (other than full)?

Relevant modules: Smart Paging 7.x-2.1 and Display Suite 7.x-2.2. Pagination works for full view mode but it doesn't work for my custom view mode which I set through hook_entity_view_mode_alter in ...
Steph's user avatar
  • 11
1 vote
1 answer
67 views

How can I fix the pages pager returns?

I have a number of "product nodes" that I'd like to return and display in a paged table. The original query is generated as follows: $productNodeQuery = db_select('node', 'n') ->fields('n'...
David Richardson's user avatar
1 vote
0 answers
92 views

Revisioning is not working properly with paging module

I am using revisioning and paging module. I have set current revision for both case node view and node edit for revisioning module. I am using pagination in node pages. There are two role A(admin) ...
bisw's user avatar
  • 569
1 vote
1 answer
137 views

Drupal 6 Pager not working

I am using pager_query and theme_pager function as below.But unfortunately the pager is not getting displayed.Please help. function advanced_product_search() { $output = ""; $sectors = $...
Malay Nayak's user avatar
1 vote
0 answers
742 views

Views Pager with ajax not working on any theme

Views pager with Ajax loading is not working on any theme.. I tried Bartik, Seven, garland Themes .. also tried to disable all modules but still not working. I also tried enable/disable ajax in my ...
french user's user avatar
1 vote
0 answers
155 views

Programatically add pager to View

I have a view that select some nodes. In views_post_execute I remove some results that cannot be directly removed by the query. To do so, I have something like: foreach($view->result as $key =&...
lorenzo's user avatar
  • 307
1 vote
1 answer
319 views

Split blog posts over multiple pages

Apologies in advance for the long message but I am very new to Drupal and really have no idea what I'm doing sowill try to explain. My company has there website built in Drupal 7, we have a module ...
Rob's user avatar
  • 11
1 vote
1 answer
67 views

Views Slideshow Continuous Pager

I'm in need of a little help here. I've recently begun my first website (ncpbc.us) and I began with building a Slideshow on my front page. However, the content that feeds into the slideshow uses ...
Jon Huizer's user avatar
1 vote
0 answers
374 views

AJAX on multiple views pagers fails to work

I have a situation that not all of my AJAX enabled pagers are working. I have several blocks on a page where each block is a view with a pager. Each pager has a unique ID. I use Context to determine ...
CyberSkull's user avatar
1 vote
1 answer
60 views

pager not working with custom reports

I have custom reporting which has few dropdowns. A report is generated in the form of a table with selected dropdown values. I have tried adding pager to the table. When I click on next page, all ...
kavya's user avatar
  • 11
1 vote
1 answer
33 views

Pager on Widget Form Query

The module is a small custom widget for the entity reference field. It creates a list of nodes that allows for multiple selections. Is it possible to paginate the results of the query even though ...
anthony's user avatar
  • 121
1 vote
1 answer
260 views

views paging dropdown

I need something like a drop down pager for a view with many pages. Either drop down with all pages listed, or maybe more fancy like this one here: http://www.zeit.de/2014/18/sextourismus-ostafrika/...
krabbe's user avatar
  • 167
1 vote
0 answers
888 views

Views pager - start paging from 1

Views pager starts with 0 (URL GET argument "page" has value 0 for first page). Is it possible to set the pager, so it will start with 1? I think it is more user friendly. (if pager is starting ...
tomas.teicher's user avatar