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
96 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 ...
2
votes
0answers
227 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
1answer
231 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 =...
0
votes
1answer
252 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 ...
3
votes
2answers
473 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('...
0
votes
0answers
62 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 ...
0
votes
2answers
404 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 ...
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 ...
2
votes
1answer
922 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": { ...
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.
2
votes
1answer
180 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 ...
-1
votes
1answer
40 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 ...
1
vote
0answers
309 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 ...
0
votes
1answer
154 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 ...
1
vote
1answer
3k 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 ...
0
votes
0answers
98 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 ...
1
vote
2answers
1k 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 ...
2
votes
1answer
442 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 ...
2
votes
3answers
1k 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 ...
1
vote
1answer
267 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(&$...
0
votes
1answer
814 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....
0
votes
1answer
110 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 ...
0
votes
1answer
292 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 ...
1
vote
1answer
61 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 ...
1
vote
1answer
624 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 ...
0
votes
0answers
72 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('...
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 ...
5
votes
2answers
8k 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 ...
0
votes
1answer
19 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. ...
5
votes
1answer
2k 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 ...
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
1answer
72 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.
0
votes
1answer
101 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) ...
2
votes
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 ...
3
votes
5answers
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 ...
0
votes
1answer
1k 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 ...
3
votes
3answers
691 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 ...
1
vote
1answer
118 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 ...
0
votes
1answer
19 views

Views AJAX functionality works, but nothing changes at all

All AJAX functionality doesn't work properly. Response body: [{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"my_theme" ,"theme_token":"...
1
vote
0answers
101 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. ...
0
votes
0answers
75 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 ...
1
vote
1answer
212 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 ...
1
vote
0answers
69 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
1answer
71 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 ...
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
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 ...
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
3answers
518 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 ...
2
votes
0answers
289 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 ...
0
votes
1answer
29 views

Smart Paging Clean url redirects to Queried strings automatically

I just use Smart Paging module and it works great. Except one thing, when I click on next link, next page clean url is automatically redirected to queried string url. Like xyz.com/some-url.html/p/0/1 ...

1
2
3 4 5
8