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
2 answers
1k views

Paging & panels

I have a site with a front page that is built up with different blocks; some of these have paging activated. They work great because they are Ajax controlled. When you scroll all the way down to the ...
blogook's user avatar
  • 103
2 votes
1 answer
520 views

If a pager is missing, then appears when using another theme, does that narrow the problem to the original theme?

I have a pager missing from one page, while visible on another. These pages are generated by my custom module. I'm working with a custom theme that's been hacked together (wasn't me!) When I switch ...
Merrick's user avatar
  • 1,134
0 votes
1 answer
384 views

Refresh button instead pager in views

Recently I developed a cg related image gallery with drupal, here: http://cgart.ir/en. top rated images displayed in quicktabs and provided by views. I need a refresh button instead pager. currently ...
Mohammad Ali Akbari's user avatar
0 votes
2 answers
2k views

attachment views and pager

I have created a overriden taxonomy term page using views, page displays and attachment displays. A term landing page looks kind of like this: 3 articles showing image as a list (page display) 3 ...
thanos panousis's user avatar
3 votes
4 answers
4k views

Create "show all" link in Views pager

I have created a view that displays titles of contents created by authenticated users. I have used pagination to display specified number of items per page. Besides this I want a "show all" link that ...
user avatar
3 votes
1 answer
2k views

How do I iterate through views result with pagination in a template file?

I am using Drupal 7.8, built a custom cck type, populated it with content, and created a view with full pager of 10 items per page. I'm modifying the views theme Row Style Output - views-view-fields....
Robbase's user avatar
  • 443
2 votes
0 answers
798 views

Comment pagination for D7?

I am not able to see the comment pagination section, even though I set up the comment field under structure/content-type/name/comment-field. I set the limit of number of comments to display on node to ...
user avatar
1 vote
1 answer
3k views

Is there a way to display an 'All' link following the alphabetic glossary with Views 7.x-3.x?

I have an existing feature in a Drupal 5 site I'm trying to reproduce in Views 7x3x, but I didn't find a way to make it happen. I have the glossary functionality working in Views 7.x-3.x but the 'All'...
Merrick's user avatar
  • 1,134
1 vote
1 answer
968 views

Pass no. of pages arguement to Drupal views pager

I have created views with display as page. In pager there is option to set no. of page to show. How can I set this dynamically by passing it through url? I can pass the page using ?page=2 and offset ...
esafwan's user avatar
  • 1,348
6 votes
1 answer
1k views

Is there a way to set the pager's page number programmatically without the page being in the url?

I would like a user who has previously left a comment on a node to initially see the last page of comments while a new user (to that node) will initially see the first page of comments. I know that ...
David Barratt's user avatar
1 vote
2 answers
600 views

Pager disappears when adding "GROUP BY" in the SQL query

Drupal pager disappears when I add GROUP BY to the query. This code works. $countSql = "SELECT COUNT(*) FROM journal "; $sql = "SELECT * FROM journal"; $result = pager_query($sql, 1, 0, null, ...
Kamran Akhter's user avatar
1 vote
0 answers
162 views

Theming of certain view block pager

i know how to theme pager on the whole site with a theme_pager(). But how to theme a certain pager in a view block? By default pager shows ← 1, 2, 3, 4, 5, 6, 7, 8, 9...100 → I need ← 1, 2, 3, 4, 5......
Alexander Kim's user avatar
0 votes
1 answer
1k views

Paginate by date

This is for Drupal 7. I Have a content type which includes a date field. Is there a way I can configure the view to perform the pagination based on month. E.g page 1 => all results for current month,...
Rooneyl's user avatar
  • 147
7 votes
1 answer
4k views

Show the pager on the top and in the bottom of the page (generated by Views)

I created a view and set a pager for it. I is shown in the bottom of the page. Is there any way to show it both in the bottom and in the top of the page?
chefnelone's user avatar
  • 6,227
4 votes
1 answer
1k views

Alter pagination start index

Is it possible to make the pagination system numbering correspond to the page number you are on? For example, instead of having /media-releases (page 1), /media-releases?page=0 (page 1), and /media-...
wiifm's user avatar
  • 5,290
0 votes
1 answer
748 views

How to give image instead of text in pager?

I need to change the text in to image in pager. For example: << First < Previous 4 5 6 7 Next > Last >> Now instead of the above i need to print as below: << < 4 5 6 ...
Fero's user avatar
  • 1,547
0 votes
1 answer
957 views

Ajax pager won't work after other ajax event

I have a View called 'example' with the Pager turned on and Ajax turned on. I have a script that refreshes the View by providing a path as an argument. $('.view-example a') .live('click',...
Allan Thomas's user avatar
1 vote
1 answer
2k views

How to override 'views-slideshow-pager-fields.tpl.php'?

I'm taking over one of my co-workers project (i'm new to Drupal...). I was able to override other view templates such as 'views-view--[my content type].tpl.php', 'views-view-fields--[my content type....
Moon's user avatar
  • 575
2 votes
1 answer
2k views

Dashboard display two blocks pagination

I have two block views in my Drupal 7 site dashboard: One is a custom module and one is a normal views block. Both are assigned to the dashboard. The custom module has a table in the block_view hook....
Aneek Mukhopadhyay's user avatar
1 vote
0 answers
154 views

Get views pager to page by taxonomy term and not content type?

I have a content type with a taxonomy term with a field. I have a view filtering by the taxonomy term and pager. The view style is set to table with the grouping field set to the taxonomy term. My ...
Jeremy's user avatar
  • 11
1 vote
2 answers
3k views

hook_views_pre_render(&$view) seems to be called after the pager rendering

I am designing and ecommerce store and I am trying to sort the products by availability using a hook_view. My function product_eta_seconds return the current eta of a product. Here is my module: ...
Cyril 's user avatar
  • 31
1 vote
1 answer
363 views

Relocate Views' pager

I'd like to relocate the pager generated by views and put it, in my page.tpl.php part, in order to display it at the very bottom of the page. Is this possible? I tried copying this code from a view ...
Ignacio's user avatar
  • 135
1 vote
2 answers
1k views

Use images in pagination links

I am using drupal 7 and i am trying to override the pager.inc function like this . function bartik_pager_first($variables) { $text = '<img src="http://localhost/drupal/themes/bartik/logo.png">...
Hacker's user avatar
  • 3,024
2 votes
2 answers
2k views

Pagination for image field in one node page

I made a custom node type with following fields: Title Body Image (Unlimited) I need to have a few pages from this content type and on each page I need to print the title field, the body and all ...
Ivailo Milenkov's user avatar
0 votes
1 answer
828 views

A block created with Views is not rendered if the page URL contains "page="

I have an odd problem. I'm using Drupal 7 and an Omega subtheme. Within Views, I have a block defined and it works great - appears where it's supposed to all over the site - except when the URL has a "...
Mark G's user avatar
  • 542
5 votes
2 answers
15k views

In drupal 7, How to override theme_pager?

I am using drupal 7 and zen theme. And am not able to override the theme_pager using zen_pager function in template.php. Any suggestion pls?
Vinoth's user avatar
  • 101
5 votes
1 answer
2k views

Views, multiple pagers on same page

I have multiple views with pagers on same page. But all of the pagers using the same GET argument "page", so when user chooses a page in first pager, all of the pagers changing their state to those ...
breethe's user avatar
  • 401
2 votes
1 answer
751 views

Smart paging rendering pager different from the Devel model

I am on Drupal 7 and I have the Smart Paging module enabled. When theming my module, I want the page numbers to appear as regular links. This seems to be the natural behavior. Here is the HTML ...
Marcos Buarque's user avatar
8 votes
3 answers
15k views

Views, Views-Slideshow, and Paging in Drupal 7

The situation is as follows: I have a content type Slide, and I want to display the three newest slides in a slideshow. The slides need to cycle, and the slides also need to be controllable by a ...
Lester Peabody's user avatar
2 votes
1 answer
614 views

I have issues with multiple paged tables in pages with multiple tabs (JQuery UI tabs)

I have a series of pages that provide paged tables inside of tabsets. Using the Tabs module, I get jQuery UI tabs, and I am using that to create pages with multiple horizontal tabs; inside those tabs ...
Blake Senftner's user avatar
0 votes
1 answer
306 views

Can I change pager.inc theme?

can I theme output of includes/pager.inc using drupal template system? I want invert page links, I don't want any edit on pager.inc or CSS. maybe invert items passed to theme_pager function
Mohammad Ali Akbari's user avatar
4 votes
1 answer
582 views

Drupal pager, go to specific page

I have a form in pager, so user can enter page he want's to view. But I can't figure out how to go to that page number in form submit.
breethe's user avatar
  • 401
2 votes
1 answer
2k views

My pager code doesn't work

I'm using the following code just to see if the paging works in Drupal 7, but I'm having trouble to set it to work. $query = db_select('node', 'n') ->fields('n', array('nid', 'title')) ->...
Dusan Markovic's user avatar
4 votes
1 answer
3k views

Move views pager to top of node instead of bottom

Is there a simple way to move views' pager to a different place than the default bottom?
Jane's user avatar
  • 1,805
2 votes
1 answer
3k views

Paging the list of comments, and getting the comment count

I am getting all the comments listed in the same page. How can I do the paging concept for comments? How do I get the comment count?
Fero's user avatar
  • 1,547
3 votes
1 answer
948 views

Node pagination

I was wondering if there was a way in Drupal to create previous/next links between about 100 nodes of a specific content type. I know there is a pager module, but that allows you to break one node up ...
Jane's user avatar
  • 1,805
3 votes
2 answers
862 views

views pager showing X results per page

I was wondering if anyone knew how to go about adding a drop down or even a list of links to help change the amount of views results per page. Ideally, when there's a lot of results you would want to ...
Garry's user avatar
  • 393
2 votes
0 answers
894 views

How to have a proper alphabetic pager with number support? [closed]

I'm trying to achieve an alphabetic pager with grouping of special characters + numbers. All pagers available do 0|1|8|9|A|B|C, while I want 0-9|A|B|C or #|A|B|C, # being for special characters and ...
Fidelix's user avatar
  • 357
1 vote
1 answer
1k views

Enable Paging on my theme

I want to know how to enable paging on my theme. The theme 'Garlik' works fine but my theme does not work why? This is my page.tpl.php : <?php drupal_add_css('http://fonts.googleapis.com/css?...
Onita's user avatar
  • 704
1 vote
1 answer
1k views

Pagination for entities

I have an entity called announcement, and I have a page (user/%/announcement) where I display a table of three columns (name of entity,an edit entity link and an delete entity link). function ...
ayush's user avatar
  • 552
2 votes
2 answers
2k views

theme("pager") returns NULL

I am trying to use theme_pager to create pagination as below, but pagination does not appear. I have tried using var_dump(theme('pager', NULL, 10)) and the result is NULL. $q="SELECT DISTINCT(node....
Alaa's user avatar
  • 397
4 votes
2 answers
4k views

Howto print out the pagination for EntityFieldQueries?

I have this code that uses an EntityFieldQuery object: $query = new EntityFieldQuery; $query ->entityCondition('entity_type', 'node') ->entityCondition('bundle', 'yacht') ->...
nocksock's user avatar
  • 689
0 votes
2 answers
1k views

Add a drop-down list to a pager

I want to add drop-down list that allows users to select which page they want to visit. How can I accomplish this? What code should I use?
enjoylife's user avatar
  • 3,788
3 votes
3 answers
926 views

Is there a module or easy way to break up nodes into multiple pages?

Is there a module or easy way to break up nodes (ie blog posts) into multiple pages?
user avatar

1
4 5 6 7
8