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

peximo’s picture

Status: Active » Postponed (maintainer needs more info)

I'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)?

netivajak’s picture

Apologies 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.

peximo’s picture

Status: Postponed (maintainer needs more info) » Needs review

Sorry for the delay. The last dev commit should fix this bug. Thanks.

netivajak’s picture

Confirming that the bug was fixed by replacing with dev version dated 2010-Aug-08.

Many thanks - Great stuff!

peximo’s picture

Status: Needs review » Closed (fixed)