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

Views pager labels not translated

I have a site (v8.4.2) with all core language modules enabled, 3 active languages, English is the default. The pager labels (e.g. "Last »") for my own Views are not translated although the string "...
4
votes
1answer
1k 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.
0
votes
2answers
2k views

How to change pager class to view

I have HTML desing of pagger ,How to I assign my own class to pager in side view ?I dont have any idea about it so will you plese tell how can I ?
0
votes
1answer
386 views

How can I create the views pager on top and bottom of the view?

I need two view pagers / pagination to sandwich the view content or view results. Is it possible to duplicate view pagers/pagination ? What i've done is just printed out the pagers in the template ...
0
votes
1answer
1k views

Views pager shows an incorrect current page

I have a page view displaying a table of fields with a few exposed filters. This page view also has a full pager (8 items per page). The view is not using AJAX, nor does it have any caching enabled (...
0
votes
2answers
357 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 ...
0
votes
2answers
845 views

How do I remove the ellipsis button in the pager?

I have a view with video and have replaced the links to different pages with a button. However, when there are many videos, an ellipsis (...) appears floating, and I want to remove it. I have the View ...
0
votes
2answers
687 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 ...
0
votes
1answer
837 views

Embed Views remove pager

I have embedded view in a node with following code: <?php $view = views_get_view('articles'); $view->set_items_per_page(1); $view->set_offset(2); print $view->preview('page'); $view-&...
0
votes
1answer
795 views

Custom module Pager does not work with Ajax filter

My custom module uses an Ajax enabled drop down to allow users to filter images. There is also a pager attached to the query. The pager works fine when all the data is displayed i.e. no filter applied ...
0
votes
1answer
415 views

Pager not working when $form['table'] is called with AJAX

For a statistics page I let users select the right file in a select list. After that I generate a table with stats. This table also has a pager (that worked without the ajax part). Now I did ...
1
vote
2answers
2k 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 ...
1
vote
0answers
270 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 ...
3
votes
5answers
1k 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 ...
0
votes
2answers
79 views

How to create a pager to display next article in particular taxonomy? [closed]

How to create a pager to display next article in particular taxonomy? I can not find any module. I tried to do this with a view. I created a view that display all content from article and add a pager,...
0
votes
2answers
436 views

Add All link on view pager

Is there a way to add a Show All Link on my view pager. I have a Block View. I would like to be able to add an All Link button when the number of Items reach 5. I do not need the pager "Next, last ...
0
votes
1answer
484 views

Pagination for Views RSS

I'm using Views RSS module to generate a custom RSS feed. I want to be able to limit the results by adding ?offset=50&limit=50 . How could I achieve that? Is there any Views plugin I could use? ...
4
votes
1answer
658 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 ...
0
votes
1answer
747 views

Table Pager Rendered in an Ajax Callback Shows White Page

I have the callback function below that renders a table with a pager. Every page of the table is 20 rows. Below is the code: function myid_print_all_submitted_id_callback($form, &$form_state){ ...
1
vote
3answers
502 views

why views items per page set to specific values

Why does the Views module accep uses the number of items per page that is in pre-defined sets like 5, 10, 25, 50, and doesn't accept values outside those values? I know how to change it; I just need ...
1
vote
1answer
537 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 ...
0
votes
1answer
485 views

Multiple pagers in one page

I have a view with two separate displays that is used in one single page. Both the displays are using a pager. To get things working I set a unique id for each pager under pager options. This works ...
0
votes
1answer
736 views

Pagination isn't working

I have a homepage view called FrontPage. Currently, it shows the pagination link like "1, 2, 3 Next->" as it should; when I click on Next, it goes to http://example.com, not http://example.com/page/1/...
0
votes
0answers
12 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'...
0
votes
2answers
42 views

How add pager with external request

After many search and read posts, I'm still stuck with my code. Let me explain : I created a custom module who display newsletters from Mailjet and old newsletters comming from drupal. To avoid the ...
0
votes
2answers
85 views

Paginated form with ajax checkboxes throws “The specified #ajax callback is empty or not callable”

Using Drupal 8.7.7 I have a form which consists of a paginated table of users. Each user row has a checkbox element in the form with an ajax event attached. This is essentially to allow me to store ...
0
votes
0answers
12 views

per-page grouped results in view

I got articles with content types A, B and C ...in an ajax-paginated view I want to show: page1: row1: A1 A2 A3 row2: B1 B2 B3 row3: C1 C2 C3 page2: row1: A4 A5 A6 row2: B4 B5 B6 row3: C4 C5 C6 ......
0
votes
1answer
1k views

How to add a pagination on my twig file using entity query(Drupal 8)

I'm currently new with Drupal 8 and right now I'm trying to output a pagination on my twig file using entity query. So far this is my current code that I came up with. My goal is output the news ...
0
votes
0answers
29 views

How can I define an offset when rendering a view with the renderRoot method?

In my app I'm calling an API to get the list of tasks as view(It has a complex html structure) and It is working correctly. But now I have to create a pagination for it. How can I pass the ...
1
vote
1answer
27 views

How to align views pager url with real page number?

When creating pager in views (D7) you get urls with query parameter like page=X by default. But this X does not match actual page number. page=1 is generated for 2 link in the paginator and so on. ...
0
votes
0answers
170 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 ...
6
votes
5answers
8k views

Help with Pager

I am using the Drupal 7 and i want to use the Pager into my query This is my query and the way i can use $qury = db_select("SELECT `entity_id` , `field_keywords_value` , COUNT( DISTINCT ( `entity_id`...
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 ...
2
votes
0answers
783 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'...
7
votes
2answers
13k views

How to customize pager

I have a code, that outputs a standard pager: print theme('pager'); it outputs this: <h2 class="element-invisible">Pages</h2> <div class="item-list"> <ul class="pager"><...
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 ...
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, ...
0
votes
1answer
23 views

Pagination in external api consume custom module

I created a custom module in order to consume an external api call in my drupal project following this question. The module is working fine, but I need to have a pagination in the received results ...
2
votes
1answer
390 views

HTML inside mini-pager navigation control labels

I'm trying to customize the output of the mini-pager controller (the "next" and "previous" link with arrows) in a view. Actually, it is possible to insert custom text for "previous"-link in the view ...
0
votes
0answers
118 views

Clean URLs for pager links?

I need to change the pager links from taxonomy/term/12?page=1 to taxonomy/term/12/page/1, in Drupal 8. I know about the Cleanpager module, but it works only in D7. Its development snapshot for Drupal ...
8
votes
2answers
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 ...
0
votes
1answer
23 views

Within a View, How do i paginate the content found inside a single Multiple file field, i.e. inside one node

Hopefully someone can help. I am using a file field and allowing unlimited files within a single content type field called "Video", handled by Media Module. I have created a view per "gallery" of ...
1
vote
1answer
365 views

Creating a table with pagination in a Node Edit form

I have a content type article that has a field for Category. In order to help our editors find related articles, I included a table on the article Edit page that pulls in other article entities that ...
0
votes
1answer
69 views

How can I populate multiple blocks on a paginated page?

my problem seemed simple to solve and how to do it. But the paging did not work properly .. As we see in the images, we have: Main block with an image and description. It only shows 1 element. ...
1
vote
1answer
822 views

How to add pagination to programmatically rendered search result template

I am trying to implement the pagination in drupal 8 custom page. I have a custom array which I am rendering using theme, I need to add pagination for it. $internal_result = array_merge($...
2
votes
0answers
51 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
1answer
267 views

how rewrite pagination URL views for SEO?

i am trying to rewrite the views url pagination : /mypath/cat?page=1 to /mypath/cat/1 or > /mypath/cat/page/1 or /mypath/cat-1 cat is a taxonomy term. I have tried to rewrite url with Drupal\...
5
votes
1answer
1k views

Clean URL pagination (rewrite ?page=parameter)

One of my client works with an SEO agency and they ask me to remove the pagination parameter ?page=x (generated by the Views module) and rewrite it like this: Before: /my-page?page=1 After: /my-...
0
votes
2answers
760 views

Centering pager for view using Bootstrap 3

I am using Drupal 7 and Bootstrap Business, which is a theme that utilizes Bootstrap 3. I have found that my pager in my views pages is not centered. I know that Bootstrap 3 for non CMS work has a ...
0
votes
1answer
360 views

Add mini pager and infinite scroll to a view

I have a view where at first 1 item has to show. On click of 'load more' next item has to show and so on. For this i have installed 'infinite scroll module' in drupal 8. Now after showing four items, '...