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 vote
0 answers
24 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, ...
Prackeus's user avatar
1 vote
3 answers
842 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 ...
Mohammed Gomma's user avatar
2 votes
0 answers
332 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 ...
MrUpsidown's user avatar
0 votes
1 answer
34 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 ...
Eez's user avatar
  • 105
1 vote
0 answers
179 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 ...
George Berkeley's user avatar
0 votes
1 answer
283 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 ...
Travis's user avatar
  • 457
0 votes
1 answer
115 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(...
Sugandh Khanna's user avatar
0 votes
1 answer
117 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 ...
Cesar's user avatar
  • 932
3 votes
0 answers
718 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 ...
Ben's user avatar
  • 31
1 vote
1 answer
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 ...
Raj Pawan Gumdal's user avatar
1 vote
0 answers
20 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: ...
Troy's user avatar
  • 111
0 votes
1 answer
75 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 ...
monkeyUser's user avatar
1 vote
3 answers
974 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 ...
CodeNext's user avatar
  • 3,723
0 votes
1 answer
38 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 ...
user15837's user avatar
  • 479
0 votes
1 answer
50 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. ...
zephirus's user avatar
  • 377
0 votes
2 answers
422 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. ...
user avatar
1 vote
1 answer
27 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 ...
Basil TJ's user avatar
1 vote
2 answers
573 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 ...
wonder95's user avatar
  • 1,201
1 vote
1 answer
2k 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 ...
Sugandh Khanna's user avatar
1 vote
2 answers
926 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 ...
DiegoT's user avatar
  • 21
2 votes
1 answer
525 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.
Viraj's user avatar
  • 347
1 vote
1 answer
105 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); ...
Incredible's user avatar
0 votes
3 answers
2k 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 ...
Moriz Büsing's user avatar
0 votes
1 answer
815 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 ...
drup's user avatar
  • 355
0 votes
1 answer
1k 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){ ...
user avatar
0 votes
1 answer
364 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 ...
Benjen's user avatar
  • 918
1 vote
1 answer
1k 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; ...
gerl's user avatar
  • 151
2 votes
1 answer
876 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 ...
Skynet's user avatar
  • 233
1 vote
1 answer
203 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 ...
Duncan's user avatar
  • 21
0 votes
1 answer
36 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 ...
RASMiranda's user avatar
1 vote
1 answer
190 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". ...
Petrovici's user avatar
1 vote
1 answer
125 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 $...
user48663's user avatar
0 votes
0 answers
26 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')) ->...
Sidharth's user avatar
  • 125
0 votes
2 answers
610 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 ...
M a m a D's user avatar
  • 3,862
1 vote
0 answers
57 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: <...
Mohsen Tabatabaiee's user avatar
0 votes
0 answers
122 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 ...
nomeer's user avatar
  • 345
1 vote
1 answer
664 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 ...
rav_amadady's user avatar
2 votes
1 answer
199 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 ...
UliKonkel's user avatar
1 vote
1 answer
901 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 ...
Phil's user avatar
  • 23
0 votes
1 answer
756 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 ...
user1527576's user avatar
2 votes
1 answer
498 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 ...
DKvistgaard's user avatar
0 votes
1 answer
655 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 ...
user3428971's user avatar
2 votes
1 answer
337 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 ...
WaQaR Ali's user avatar
  • 1,688
0 votes
1 answer
293 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->...
nomeer's user avatar
  • 99
1 vote
0 answers
47 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 ...
Steph's user avatar
  • 11
2 votes
2 answers
449 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 | > ] ...
Robert D.'s user avatar
0 votes
1 answer
195 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 ...
118218's user avatar
  • 682
0 votes
1 answer
141 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 ...
Prabu's user avatar
  • 111
1 vote
1 answer
67 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'...
David Richardson's user avatar
0 votes
2 answers
1k 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 ...
Cesar's user avatar
  • 11

1 2
3
4 5
8