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 votes
1 answer
99 views

How to reuse the query on a node page?

I have a Views page which is a search page based on a Search API index containing a few filters. The results are rendered entities. When clicking one of the entities, I wonder if it is possible reuse ...
Bolle89's user avatar
1 vote
1 answer
949 views

How to add pagination after using hook_views_post_execute() to modify $view->result?

I have successfully used hook_views_post_execute() to remove results I do not want from $views->result. Now, however, I need to paginate the remaining results. The code in my ...
ssteigen's user avatar
2 votes
1 answer
470 views

How do I use paging in a content type containing a paragraph?

I created a content type with just one multivalue field which turns to be an "entity type revisions" (i.e. Paragraphs). I would like to have paging working on this setup (when number of Paragraphs ...
Antonio's user avatar
  • 159
1 vote
1 answer
4k views

Adding pager to queried content in a custom module Drupal 8

I've created a custom module to get X items using entityQuery, and then display them as a list. I need to limit these and add a pager to click through to the next page, but I cannot find how best to ...
mrpatg's user avatar
  • 111
6 votes
1 answer
6k views

Pager with EntityQuery

how can I make a pager with the pager class? I could not find anywhere how to do this with the EntityQuery class. I have a pager(10) that displays the last 10 items. I want to make a pager with ...
Luc - K's user avatar
  • 69
0 votes
1 answer
416 views

Views Pager, Can I change Items per page dynamically as provided input?

Is it possible to send Items per page limit in query string of view page url and get records according to that?
Puneet's user avatar
  • 133
0 votes
1 answer
111 views

Two pagers for a single view

I have a view with fields. In fields I have added two rendered node fields with two different view modes teaser and teaser1. I want to add two pagers to this view. One for the first rendered node ...
Ahmad's user avatar
  • 2,835
2 votes
0 answers
296 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
1 answer
309 views

Routing custom module with alphabetic pagination

My custom module: - Plugin/Ziektes.php array returns to hook_theme public function build() { $letter_path = 'B'; $path = base_path(); $current_url = Url::fromRoute('<current>'); $current_path =...
KDR DZ's user avatar
  • 23
0 votes
1 answer
307 views

How to add a class to a pager?

I would like to add bootstrap classes to a load more pager, with the views load more module. I am currently using javascript to add it on, but the moment I change the view the classes are no longer ...
monadoboi's user avatar
  • 111
3 votes
2 answers
889 views

Multiple pagers in single page

Hi I have a page in which I have added 2 blocks in both blocks I have paging,but when ever i click any page number of either a block both the page change simultaneously in Drupal7 $output .= theme('...
Rajat Gupta's user avatar
0 votes
0 answers
70 views

views pager by ajax

I have multiple views in a page. Each of the views has its own pager. When I go to page 2 of one of the views "?page=1" appears at the end of the URL but I do not want it. How can I load whole of the ...
shekoufeh's user avatar
  • 589
0 votes
2 answers
756 views

How to display the pager on top and bottom of a custom search results page?

I have used the core Search Page functionality in Drupal 8 to built a search engine on my site. The pager is displayed at the bottom by default. How can i display the pager on the top also? Note: I ...
d8ninja'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
2 votes
1 answer
2k views

Using Migrate API with a multi-page / paginated source

I have a working module pulling a JSON feed into Drupal 8 using the Migrate API. However, the feed is paginated, and I am only getting the first page of results. For example: { "meta": { ...
Hugo's user avatar
  • 663
2 votes
1 answer
207 views

How to override items per page in cloned view?

I have some Views page and there is a pager with 10 items limit per page. I cloned this View and I want to have 6 items per page in this cloned View, but this is not possible. Every time I try to ...
mixerowsky's user avatar
  • 1,581
-1 votes
1 answer
48 views

Why do I get an Error 500 when loading all news items?

I developed a News Website. I have more than 5000+ news items on the site, displayed in a view with a pager (100 items per page). In my view configuration, I enabled Expose items per page and ...
Salaktarus's user avatar
1 vote
0 answers
489 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
0 votes
1 answer
327 views

Is it possible to alter the behavior of the Ajax pager?

I have a problem with the way the Drupal 7 Ajax pager works on my website: when looking into the code, it creates links, then when one clicks on one of these links, the ajax.js catches this event and ...
Stephane.P's user avatar
1 vote
1 answer
5k views

Display {{pager}} to twig file

i am kinda new to drupal 8 so don't judge to hard... i have made template for drupal, that is in plain html,css and js... than i imported it to drupal correctly as drupal documentation says whit his ...
George Chanturia's user avatar
0 votes
0 answers
114 views

pagination in custom theme view in custom module

I have a custom module and output of that will be shown using custom theme view and i want to put the pagination in the result. I tried all the things but pagination could not shown on page. here ...
user avatar
1 vote
2 answers
2k views

how can add pagination in custom module?

i have a custom module file and i want to add the pagination but nothing is appear, might be i did it wrong way. please suggest the right direction. here is my file. form-list is the url. <?php ...
user avatar
2 votes
1 answer
533 views

How to show custom error messages below text field?

I want to display custom error messages below that text field in comments form. Currently it displays all error messages above the page which is not acceptable. I'm using this theme for my blog. I ...
Vilas Galave's user avatar
2 votes
3 answers
2k views

AJAXifying content and pagination problems

I am using the Ajax links API module that allows to load a node inside a <div> tag by using <a class="ajax-link" href="node/add/page" rel="#content">Add page</a>. However, I have a ...
Cesar's user avatar
  • 932
1 vote
1 answer
322 views

How to replace current symbols with font awesome icons in every pager?

I want to replace current symbols with font awesome icons in every pager on my site. Problem is, the icon tag is printing as text, not as html. Here's my code: function default_preprocess_pager(&$...
user504944's user avatar
0 votes
1 answer
1k views

Combination of AJAX Views and infinite pager

In Drupal 7, I load an AJAX View (in response to user clicking a link) with the following code (source: How to load and display a view with Ajax in Drupal 7?) jQuery.ajax({ url: Drupal.settings....
Cesar's user avatar
  • 932
0 votes
1 answer
114 views

Looking for a special views exposed filter with pager and select list

i'm looking for an exposed views filter like it is implemented at the linked page. Example here a) While click on "1.Spieltag" there is a select list. b) Also there are pager arrows to scroll ...
user2699953's user avatar
0 votes
1 answer
402 views

Server Error 500 when changing pager of Views to display all items

I have a View with 1,000 potential items. When it is paged, it works perfectly, both with Ajax paging or normal paging. But when I try to switch off the display type, the server throws a Server Error ...
Cesar's user avatar
  • 932
1 vote
1 answer
70 views

How can I fix a pager limited to 2 pages?

The pager on the home page of my website is limited to 2 pages, ie the paging links are only for page 1 and 2 and both next and last point to page 2, but there are a lot more pages than that. Is ...
vfclists's user avatar
  • 1,269
1 vote
1 answer
880 views

Views pagination, jquery and ajax error

I have emerged me a problem with a page view and maybe someone can help me solve. Following this tutorial: http://codekarate.com/daily-dose-of-drupal/multiple-views-part-3 I created a view showing a ...
Barry Collins's user avatar
0 votes
0 answers
78 views

How to add multiple pagers in same page, with db_select queries? (In AJAX)

How to apply a pager with db_select? I have setup a query like that: $query = db_select('node', 'n'); $query->join('field_data_field_author_text', 'au', 'n.nid = au.entity_id'); $query->join('...
118218's user avatar
  • 682
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
7 votes
2 answers
15k views

How to add Pager to a custom page?

I have a list of items which is fetched from an REST API and displayed in a page 10 at a time. These items are not stored in Drupal database in any way. I managed to have a basic pager which is just a ...
Malabya Tewari's user avatar
0 votes
1 answer
20 views

Pager will come by default in blogs template or not?

I am using blogs module in one of the website. I have created a template file for that, I want to add pager if blog items exceeds that 10. So my question is in that template file how can I use pager. ...
Suraj's user avatar
  • 884
5 votes
1 answer
3k views

How to programmatically render a view pager?

I'm trying to figure out how to render a view's pager programmatically. I'm renderering my view programmatically as follows: $viewname = 'example_view'; $viewdisplay = 'block'; // get the view ...
Janey's user avatar
  • 1,260
1 vote
1 answer
45 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
1 answer
75 views

How to convert query string http://example.com/myview?page=1 to http://example.com/myview/page/1 in views?

I have to make url of views seo friendly. I need to convert query string http://example.com/myview?page=1 to http://example.com/myview/page/1. Can you please suggest, how can i do this.
Himanshu Batra's user avatar
0 votes
1 answer
117 views

How to put pager between multiple views?

I am finding the way to combine more than one views through pager, I would like to connect them using the pager. And I would like to provide the pager like what is on drupal site(documentation part) ...
CodeNext's user avatar
  • 3,723
2 votes
2 answers
3k views

How to expose paging data in REST export views

How to allow views to export paging data along with entities? I can set pager, and it works of course, for example my_view?page=1 displays something like [ {...}, {...} ] but I only get list ...
Trupal's user avatar
  • 513
3 votes
5 answers
2k views

Is there any way to adjust the items per block options?

In Drupal 8, whenever you create a view block, you have the option to specify the number of items displayed in that view block which is awesome. Currently, you can choose between 1, 5, 10, and 20. Is ...
discg0lfer's user avatar
0 votes
1 answer
2k views

Start page count from 1 with views pager

Is there a way to start the page count from 1 instead of 0 using views pager? Maybe using aliases or some module? By default, the first page is displayed with the URL parameter ?page=0, the second ...
Andrea's user avatar
  • 1,247
3 votes
3 answers
913 views

Display all comments of node without pager (300+ comments)

I have a content type with threading comments. The max number of comments per page is set to 300 (that is the absolute max). If there is more than 300 comments - they get paged. How do I show all ...
oksana-c's user avatar
  • 2,821
1 vote
1 answer
120 views

pagination broken on custom theme's search system page [closed]

I do not have pagination on the system search page .../search*. When I toggle off my custom theme I have pagination on the search-result.tpl.php page, I can see the $pager variable. But on my custom ...
Daedalus's user avatar
  • 151
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
0 votes
0 answers
81 views

Pager at the same page as opened item from pager list

Default functionality of pager is that pager shows list of items on multiple pages and you can possibly open one of the item (node or something else) by clicking on it (you will be redirected to a ...
Incredible's user avatar
1 vote
1 answer
354 views

How to add pager at the bottom which allow shifting between views?

I am looking for how to add pager in the complex set of view content. In my case, - I have 5 views with different titles, and have 10 items in each views. - Now, I want to divide each view in 2 ...
CodeNext's user avatar
  • 3,723
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
1 answer
85 views

Implementing a search and results page in the admin interface

I'm trying to implement a search and results form in the admin interface but I am having trouble getting the search function and pager working. [1] The pager is not showing at all. I've got this ...
RobotEyes's user avatar
  • 365
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
74 views

How to make a theme'd table that is sortable and has pager? [closed]

So I get an array from another function and now I need to style it into a table and make the headers sortable and have a pager on it. I've been able to do this when querying the database directly but ...
Exziled's user avatar
  • 231

1
2
3 4 5
8