Questions tagged [paging]
The process of splitting the result of a query on different pages is called, in Drupal terminology, paging.
394
questions
2
votes
2
answers
3k
views
How can I modify pagination to restrict shown page numbers?
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 page links ...
0
votes
1
answer
596
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
0
answers
92
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) ...
1
vote
1
answer
303
views
Pager encoded commas
I added a pager to a site I'm working on and the URL for a page comes out to: http://example.com/blog/0%2C0%2C0%2C0%2C0%2C5 which is an encoded version of */0,0,0,0,0,5. However, I'd like the URL to ...
0
votes
2
answers
922
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
2
answers
93
views
Impossible to get my pager
I need to show in the same page a form and a table which shows all results from a webservice response.
function collectivite_search_user_form($form, &$form_state) {
$form['name'] = array(
...
1
vote
1
answer
170
views
Drupal 7 theme('pager') -> PDOException: SQLSTATE[42S02]: Base table or view not found
first time i have asked for help on a forum for a very long time. Normally find what i need by viewing other posts... Well i'm really confused so need help.
I am trying to use theme('pager') in ...
1
vote
1
answer
137
views
Drupal 6 Pager not working
I am using pager_query and theme_pager function as below.But unfortunately the pager is not getting displayed.Please help.
function advanced_product_search() {
$output = "";
$sectors = $...
0
votes
1
answer
119
views
Drupal pagination help
I am not sure how this works, hence need a little help. I am fetching some nodes using db_select and rendering this in a foreach loop in a custom template file. I would give a hint of my code :
$...
0
votes
4
answers
2k
views
Views Load More pagination causes duplication
I am encountering an issue with Views Load More with Waypoints module. My question is more focused on the next contents that are retrieved. Because there are new contents added to the top, the page 2, ...
1
vote
0
answers
742
views
Views Pager with ajax not working on any theme
Views pager with Ajax loading is not working on any theme.. I tried Bartik, Seven, garland Themes .. also tried to disable all modules but still not working.
I also tried enable/disable ajax in my ...
1
vote
1
answer
1k
views
Add pagination to the results in custom module after split the row to many sub rows
I try to build new module (Drupal 7), in some page I show the results to the user as a table like the following:
<?php
$header = 'bla bla bla'; //header come here
$query = db_select('...
0
votes
2
answers
148
views
Views Slideshow - How to add link on Pager that can link to original page?
Views Slideshow on Drupal 7 has a feature that can “Activate Slide and Pause on Pager Hover”. How can I add link on Pager, so when click, it actually link Pager to original piece of content?
-2
votes
2
answers
228
views
Use Pager with a webservice
I use a webservice to get data instead of using mysql and I try to show results with a pagination:
function partenaire_search_partners(){
$results = partenaire_ws_get_partners();
foreach($results-...
2
votes
1
answer
976
views
How to give pagination for Rest Service data
I am using Rest Service and pull the data from another non drupal db.
I wrote custom module with two form elements and render that data (rest service call) and display using theme table.
I wrote $...
0
votes
1
answer
617
views
How to change number of item per page in taxonomy page?
I have multiple content types. I want to change number of item per page in teaser mode and it is different for every content type.
In admin/config/system/site-information we can change number of ...
7
votes
2
answers
15k
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"><...
1
vote
2
answers
912
views
Pager doesn't work in views block if views php field is used
I have a views block that shows nodes in some conditions. The views has pager and normally it works but if I use Global: PHP field the pager doesn't work and it only show the first page.
The Global: ...
0
votes
1
answer
283
views
How to apply pager in a table using theme function? [closed]
I am rendering and displaying data using theme table. I'm using
$form['pager'] = array('#theme' => 'pager');
for displaying pagination. Now my intention is to display pager in two areas of ...
0
votes
1
answer
499
views
Translating Views Pager
Help, how to translate paginator in views? In my views I used a mini pager with tags backwards/forwards. Tried to do through translate interface, but nothing happened.
0
votes
1
answer
44
views
How do you use tabledrag API in a multi-page environment?
As you can see in the image below, I'm using drupal_add_tabledrag to allow admin to sort node order by dragging. But how do I drag the items from one page to another? Is there additional Drupal API, ...
0
votes
0
answers
449
views
How to detect if pager is active on page?
Is it possible to detect programatically, if page on current URL contains some pager?
I have views with pager on my website. I can see "page" GET argument in URL, but not in first page. So I cannot ...
-1
votes
1
answer
1k
views
Implement a pager for my table and navigate into it in ajax
I'm looking for a way to implement a pager for my table knowing that I don't use a query and I can't use that kind of solutions:
$query = db_select('node', 'n')
->condition('status', 1)
-&...
1
vote
1
answer
907
views
Pagination in apache solr search page
To control the number of search results showing in a solr site search page there is a text field in admin/config/search/apachesolr/search-pages/core_search/edit
In advanced option tab, there is an ...
1
vote
0
answers
155
views
Programatically add pager to View
I have a view that select some nodes.
In views_post_execute I remove some results that cannot be directly removed by the query.
To do so, I have something like:
foreach($view->result as $key =&...
0
votes
1
answer
191
views
Show result summary in theme table
Can we show the result summary like "Displaying X to Y of Z records" while using the "table" or "tableselect" themes? I mean just the thing we do in views header/footer using the "Global: Result ...
1
vote
1
answer
60
views
unlimited number of values gets really big
I have created a content type with a field inside which can take unlimited number of values. eg a city with the names of its inhabitants.
The problem is that this number can get really big (i.e. ...
1
vote
2
answers
1k
views
Replace Views prev/next pagination with image arrows
Is there a template that would allow me to replace Views' prev/next text pagination with image arrows instead? I could do it with CSS but I don't feel that is ultimately an optimal solution.
0
votes
1
answer
96
views
Pagers of two different contents are conflicting
There are two contents in my website, say CA and CB, I created a view for each one and it displays 10 items and for the rest of the items pager is used. CA is in the sidebar first region and CB is the ...
1
vote
1
answer
319
views
Split blog posts over multiple pages
Apologies in advance for the long message but I am very new to Drupal and really have no idea what I'm doing sowill try to explain. My company has there website built in Drupal 7, we have a module ...
1
vote
1
answer
239
views
Advanced forum topic list pagination settings is not applied
I tried to change the pagination settings (number of elements displayed) in the view corresponding to the topic list, but in the front end, this setting doesn't seem to be applied.
the original value ...
3
votes
2
answers
3k
views
views pass argument for number of records to display to pager contextual filter?
Drupal 7.
Is it possible to pass an argument to the contextual filter to limit number of items to display in a View from the UI?
IOW: can you pass an argument that replicates the Number Of Items ...
1
vote
1
answer
67
views
Views Slideshow Continuous Pager
I'm in need of a little help here. I've recently begun my first website (ncpbc.us) and I began with building a Slideshow on my front page. However, the content that feeds into the slideshow uses ...
0
votes
1
answer
445
views
Drupal Views pager shows last page when higher pager value is entered manually instead of page not found
I have a view with pager. The views pager is not AJAX and the pager id comes is the URL as
http://d7.local?page=3
There are total of 15 pages in the view.
So the last page is http://d7.local?page=14
...
2
votes
2
answers
576
views
Using migrate with a multi-page / paginated source
I have a working module pulling a JSON feed into Drupal using the Migrate module. However, the feed is paginated, and I am only getting the first page of results (ordered DESC on creation, so giving ...
0
votes
2
answers
144
views
Want to modify drupal default pager functionality
I am creating a page with teaser of articles using views... In the Full pager, the default functionality is....
1 2 3 4 ... next >
when i click next now the next number gets highlightd like...
< ...
0
votes
1
answer
214
views
How to change views pager with View All links
I am using the full pager in views module. I am displaying 40 items per page. The full pager display links like this
1 2 3 4 5 next last
I want to change it to this
View All 1 2 3 4
How will I do ...
2
votes
3
answers
1k
views
How to create Drupal 7 clean pager links?
In my last project my client aksed me to do clean pagers in his website. However drupal 7 handles pagination using ?page=1 but I need page/1 insted of that. Do someone have experience of creating ...
3
votes
1
answer
124
views
remove node in /node?page=1
I am using Global Redirect which automatically convert /node?page=1 to /?page=1 when click on pagination. everything working fine but i want also remove /node and just want /?page=1 when mouse hover ...
0
votes
1
answer
188
views
How to use pager or term limit for taxonomy_get_tree($vid)?
How to use pager or how to limit terms, when using taxonomy_get_tree($vid)?
I have this code for terms generation:
<?php
$vid = 2;
$terms = taxonomy_get_tree($vid);
$max_depth = (!isset($...
1
vote
2
answers
284
views
Views displaying only one record on pagination
Created a view which displays all user on the website, I have added pagination which displays 10 records on the page.
I am not sure but its displaying only one records but correct pagination link.
1
vote
0
answers
26
views
pagination issue on view blocks [duplicate]
I have 3 view blocks on my page which show a list of blogs(nodes) with a pager. The issue is that whenever I click the 'next' or any link on the pager, all the blocks change, not just the one Im ...
0
votes
1
answer
112
views
alias the path of single - node views (pagination on single nodes)
I would like to effectively replace the nodes with views that would show the "full content" of a node with items to display set to 1. (Each paged page of the view would thus include only one node and ...
2
votes
0
answers
363
views
Views Ajax Pager not working when loading view with ajax
I have a page with a view that has a pager with ajax.
the pager is working fine when the page first run.
the page has a button that loads the next page using ajax, the view is loaded fine but the ...
-1
votes
3
answers
493
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
1
answer
631
views
views generated pager url
How can I get the url generated by the pager in views.
drupal/project11?page=1
drupal/project11?page=2
I would like to add a link on my image to the 2nd page on my first image, to the 3th page on my ...
1
vote
3
answers
728
views
Get next node in nodequeue
I have a nodequeue named work_order.
If I am in a page which belongs to this queue, is there a way I can get the next node that will be there in the nodequeue?
I looked at most of their API ...
0
votes
1
answer
649
views
How would I paginate to 5 results in each page this query?
I am trying to paginate the results from the table, I saw some examples but those make use of db_select, I chose db_query. Is there a way to get the paging with db_query? I have been trying to ...
0
votes
1
answer
256
views
Make Views pager count rows, not items?
I have a view of events, grouped by month. Each month could have between 1 and 6 events. The pager is set to 10 items.
Example:
January
x x x
February
x x x x
March
x x
April
x
So if there are 5 ...
0
votes
1
answer
196
views
Error in Pager of a Ajax View
I am getting the following error in Ajax Enabled View, which uses Load More Pager.
I am not sure if its, entirely because of OG, as the error doesn't appear in Views Preview but only in the actual ...