Closed (fixed)
Project:
CCK Pager
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2010 at 15:20 UTC
Updated:
21 Sep 2010 at 15:37 UTC
If Number of Values (in manage fields) is set to anything other than unlimited, and some nodes have less than the maximum number of values, too many pager links are created.
eg. If Number of Values = 5 then 5 pager links are created (excluding previous/next etc) - 1 2 3 4 5
If Number of Values = Unlimited then the correct number of pager links are created for the amount of content added.
eg. If 3 values are entered, then 3 pager links are created - 1 2 3
I've tested with Drupal 6.16, 6.17 and cck_pager 6.x-2.0-beta3, 6.x-2.0-beta2 and 6.x-2.x-dev (2010 Jul 11).
Thanks for the module, first time I've used it and it's very handy.
Comments
Comment #1
peximo commentedI'm sorry, but I can not reproduce the bug. Could you send me all the steps necessary to reproduce the problem (CCK pager display configuration, Items per page and Max pager pages)?
Comment #2
netivajak commentedApologies for delay in responding.
Max Pager pages is 9
Items per page is 1
Widget Type is image
I created a node type "Project" in this instance with 2 additional cck fields - Project Homepage Image and Project Image. Other fields are left at default.
I initially set the Number of Values (Global settings) for the Project Image to 5.
A handful of test "Projects" were created with 5 images so everything appeared to be as expected. It was only when we later created Projects with only 3 images that the problem appeared.
Maybe this is relevant: after switching to unlimited, we had to go into each project and edit and save - without changing anything in the form - to get the correct number of pager items.
Comment #3
peximo commentedSorry for the delay. The last dev commit should fix this bug. Thanks.
Comment #4
netivajak commentedConfirming that the bug was fixed by replacing with dev version dated 2010-Aug-08.
Many thanks - Great stuff!
Comment #5
peximo commented