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
276 views

Views Calendar Pager Skips a Month Forward

In our calendar constructed by Views, the pager (also constructed by Views) skips a month when you hit next. However, the "previous" pager button only goes back one month. So it goes forward two ...
0
votes
1answer
104 views

How to prevent pager_default_initialize from getting initialized?

I'm calling this function pager_default_initialize on a certain condition. But once this function gets called, it initializes default pager everywhere I return theme('pager'). What I want is if(...
0
votes
1answer
99 views

Rewriting the pager of Views in Drupal 7

I have a Views which I am calling via views_get_view and view->preview. I am feeding the Views with a form via Form API - with no exposed filters - and the problem is that while the number of pages ...
3
votes
0answers
540 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 ...
1
vote
1answer
2k views

Views Slideshow - Bullets or Numbered Pager not displaying

I have used Views Slideshow to generate a page slideshow. The rotation / cycle is working fine but I need to display a bulleted pager. Since I am not able to display any kind of pager, I started with ...
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: ...
0
votes
1answer
68 views

Pagination in Panelizer drupal

I'm using panels and panelizer. I created a custom content in panelizer where I can upload a file. When I render the results, I have a lot of items. Now I want to paginate them. How can I add the ...
1
vote
3answers
887 views

How to add pagination (pager) to field collection module?

How to add pager to the content created by the Field collection module? I tried to achieve it with the Views module but Views takes the whole field collection content as single item, so it is not ...
0
votes
1answer
30 views

Paging issue in views when implements node access

I have created a content type called Details it is the collection of employees detail. And also I have created a Taxonomy terms called manager, employee, lead. Also I have created a field(as Taxonomy ...
0
votes
1answer
45 views

Views charts pager doesn't match parent

I have a view with a table that has a pager to show 5 items at a time: Items to display:Display a specified number of items | 5 items In another display I have a chart that is attached to the table. ...
0
votes
2answers
288 views

Show a Particular Page in Drupal 7 Table Pager

I have a table and a table pager in my form. // $table_rows is an array containing data. $page = 2; //$page indicates that I want to display the second page in the table pager //$page is dynamic. ...
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
2answers
470 views

Ajax not output to Ctools modal when using pager

So in my continuing quest to display a form with Solr search results in a Ctools modal window and use a pager, I've managed to get everything to display fine after the initial search, but when I use ...
1
vote
1answer
1k views

How to use pager_default_initialize with entity field query?

In order to apply pagination on nodes which get rendered into block, I am using pager_default_initialize method. Basically I have written a query, execute that query and after that write ...
1
vote
1answer
156 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 ...
2
votes
1answer
305 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.
1
vote
1answer
87 views

Item pagination - fatal error: allowed memory exhausted [duplicate]

I have an $items array that I was displaying with my template file. Now I want to add a pagination, therefore the code looks like this: $current_page = pager_default_initialize(count($items), 4); ...
0
votes
3answers
1k views

Pager missing in View

I have a view with navigation set to paged, 12 items. I can see 12 items (there are way more available), but no pager. Googling this problem I found the following solutions that didn't work: View ...
0
votes
1answer
628 views

Create pager from db_query

This my SQL query to fetch the details. $query = "SELECT DISTINCT TITLE, PID, TYPE, SUM(DAYCOUNT) AS tot, ROUND(SUM(DAYCOUNT)/( SELECT SUM(DAYCOUNT) FROM REPORT_LIST_VIEW), 4) AS per ...
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){ ...
0
votes
1answer
162 views

Pager extention not working in dynamic database query

I am trying to create a page which shows all the nodes created by the currently logged in user. To do this I am using a dynamic query to fetch the relevant nodes. However, for some reason the pager ...
1
vote
1answer
748 views

remove pagination in admin content page

I cloned /admin/content (via the Views module). The clone uses a different URL (e.g. /admin/content/clone) and doesn't use any pagination. In the view, I've set the pagination to Display all items; ...
2
votes
1answer
818 views

How to implement pager in custom page template?

in my theme I need a custom front page which displays a filtered set of news and paginated. The news are nodes with content type=news, and every one has a field "is topnews", so that only the freshest ...
1
vote
1answer
151 views

Ajax pager failure in view after modifying view on hook_views_query_alter

The requirement is for different pages on the website to show different Twitter feeds according to the current page. There is a context (triggered according to the path) that inserts a view block into ...
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.
0
votes
1answer
35 views

Is there any theme record count?

Is there any theme record count? Like: "Showing 1 to 10 of 186 records". So that the user sees the number of pages and total number of records of a query (EntityFieldQuery). Something made my drupal ...
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
86 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 $...
0
votes
0answers
22 views

Inconsistent paging per page

I have created a custom module whishow data from table.I have used following code: $query = $query->extend('PagerDefault')->extend('TableSort'); $query ->fields('u', array('fields')) ->...
0
votes
2answers
545 views

Disabled AJAX paging with embedded views when used in Views template files

I am using a View in two different pages: page--front.tpl.php and views-view-grid--inside--page-1.tpl.php which is a custom display of a view. This is the code that is used in both of these print ...
1
vote
0answers
54 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: <...
0
votes
0answers
105 views

Custom pagination in search results [duplicate]

I would like to know how to display a custom pagination in search results. By default drupal search is displaying 10 results but no pagination even $pager; is printed in search-results.tpl.php. I know ...
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 ...
2
votes
1answer
184 views

How to alter a views current pager label to node post date

I'm working on a website which features a daily updated "six word story" (a node for each day). I created a view to display the last node/story, with the option to scroll back one day at a time (using ...
1
vote
1answer
423 views

Changing Pagination based on screen size

Is it possible to change the amount pagination displays based on screen size? For example: I have a products page that I want to show 30 items on desktop, but on mobile I'd like it to only show 10 ...
0
votes
1answer
707 views

Calendar as view's pager (passing arguments between views?)

I have a view paged by week. Users are a bit disappointed by the pager: they find clumsy to navigate to weeks that are far in time (more than 1 month from today's date). The idea is to keep the ...
2
votes
1answer
459 views

EntityFieldQuery with pager and db_or using addTag

I'm having an issue that I hope some of you can help me with. Drupal version: 7.36 I've created a list of all nodes of a certain content type using EntityFieldQuery. Since there are a lot of nodes ...
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 ...
2
votes
1answer
311 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 ...
0
votes
1answer
197 views

drupal 7 pagination [duplicate]

I used the below code but it gives me error. Below is my code: if(isset($_GET['tid'])) { $id=($_GET['tid']); $query = new EntityFieldQuery(); $query->...
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 ...
2
votes
2answers
401 views

Custom pager for View

The client I'm building a site for has a collection of content that they want paged by its ReleaseYear Field. The pager they want should look like: [ < | 2011 | 2012 | 2013 | 2014 | 2015 | > ] ...
0
votes
1answer
169 views

How to use drupal_add_tabledrag() with paging feature?

I have set up a table to reorganize content based on custom weight field. Everything works well without pager. But if I add a pager to the form, only the items displayed will be reorganized - causing ...
0
votes
1answer
136 views

Drupal 7 pager from module fuction not displaying in page.tpl

I have a function mymodule_submissions in my module which fetches rows from mymodule_table and prints as table theme with pager. Its working fine if I define a menu link in my module to call that ...
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'...
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 ...
2
votes
2answers
2k views

Modify Drupal pagination to restrict shown page numbers on Drupal 8

On Drupal 8: I have a pagination for list of articles within a Drupal site e.g.: <<first <previous ... 3 4 5 6 7 8 9 10 11 ... next> last>> So at the moment there are always nine ...
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 ...
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) ...
0
votes
0answers
80 views

why is my simple node Service returning views.exposed_data

my simple Services endpoint uses the Views 3 & JSON data document settings in this screenshot: at least a few days ago the structure was simply... {}{ "nodes": [{node:{},..], "view": { "name": "...