Views pager doesn't display all teaser nodes
shawnpetriw - January 29, 2008 - 04:32
| Project: | Views |
| Version: | 5.x-1.6 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
I have a view that displays a number of (custom) event nodes. If set to no paging (checkbox off, 0), it shows all the upcoming events in teaser form, as expected. There are about 100 nodes.
However, If I use the pager, it doesn't display all the nodes; "Last" is not the last node, and going through the numbers doesn't do it, either.
Changing the type of view from Teaser to Full Nodes to Table doesn't change it.
Any ideas?

#1
I believe this is somehow due to using multiple dates in the CCK field.
When nodes are displayed by this view, if the node has multiple dates, it is displayed multiple times. (Node: Distinct in the view does not seem to constrain this).
So, for example, 10 events may display 15 instances because one event has a run of 6 dates.
I'll bet the pager, when invoked, seeing there are only 10 NODES is looking to display only 10 INSTANCES, and thinks it's done after 10 and doesn't show the other 5 instances event though NOT ALL the NODES have been displayed.
My solution for my roll-it-yourself events will be to remove multiple dates functionality and use the node clone module to deal with repeating events.
(Yes, I know about event module and event repeat - I chose to roll my own for a number of good reasons at the time, which may or may not still hold true).
#2
duplicate of: http://drupal.org/node/215353