Questions tagged [paging]

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

116 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
2k views

Ajax pager with form callback

I created a form using the form api that outputs a list of results via an ajax callback. I want the said view to paginated. How can i do that? I'm using drupal 8 and don't want to use embeded views.
4
votes
1answer
664 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 ...
3
votes
0answers
559 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 ...
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 ...
2
votes
0answers
52 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 ...
2
votes
0answers
224 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 ...
2
votes
0answers
285 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 ...
2
votes
1answer
333 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.
2
votes
1answer
316 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 ...
2
votes
0answers
332 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 ...
2
votes
1answer
303 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 ...
2
votes
0answers
786 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'...
2
votes
0answers
233 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 ...
2
votes
1answer
77 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 ...
2
votes
0answers
469 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. ...
2
votes
0answers
791 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 ...
1
vote
0answers
334 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 ...
1
vote
0answers
488 views

Views with ajax get current node in hook_views_query_alter

The view has on offset based on a value set in the Basic page node. function domain_config_bu_views_query_alter(ViewExecutable $view, QueryPluginBase $query) { if($node = \Drupal::routeMatch()-&...
1
vote
0answers
246 views

How to add a class for anchor tag for particular view using pager.html.twig?

I have been trying to add class for anchor tag, but I could not find the right way to achieve this. I want to add class for particular pager in view. There is no pager.html.twig for particular id. I ...
1
vote
0answers
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 ...
1
vote
0answers
301 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 ...
1
vote
0answers
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 ...
1
vote
1answer
40 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 ...
1
vote
0answers
100 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. ...
1
vote
0answers
68 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 ...
1
vote
2answers
65 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 = $...
1
vote
0answers
22 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, ...
1
vote
0answers
132 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 ...
1
vote
0answers
18 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: ...
1
vote
1answer
25 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 ...
1
vote
1answer
190 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 ...
1
vote
1answer
18 views

Pager:Page options

How to get added options to pager? I have posted an image above. I cannot find the way to added options in pager. I suppose there might be an added module on the left side of the image. Please help.
1
vote
1answer
183 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". ...
1
vote
1answer
91 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 $...
1
vote
0answers
55 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: <...
1
vote
1answer
542 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 ...
1
vote
0answers
46 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 ...
1
vote
1answer
61 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'...
1
vote
0answers
87 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) ...
1
vote
1answer
113 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 = $...
1
vote
0answers
629 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 ...
1
vote
0answers
140 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 =&...
1
vote
1answer
280 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 ...
1
vote
1answer
64 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 ...
1
vote
0answers
369 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 ...
1
vote
1answer
53 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 ...
1
vote
1answer
28 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 ...
1
vote
1answer
192 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/...
1
vote
0answers
702 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 ...
1
vote
0answers
148 views

Add a pagination to drupal nodes?

I can't get a pagination working for my nodes... What I've tried: I tried to make a page view with views in which I had my youtube content type and the title. Then there was a pagination but first: ...