Hi,
I am facing a strange problem with image field module, when i am creating a views for an image node with not grouping mulitiple values for the image filed the pager doesn't appears even when use pager is enabled in a page view.
here is view query :
SELECT node.nid AS nid,
node_data_field_embed_model_photos.field_embed_model_photos_embed AS node_data_field_embed_model_photos_field_embed_model_photos_embed,
node_data_field_embed_model_photos.field_embed_model_photos_value AS node_data_field_embed_model_photos_field_embed_model_photos_value,
node_data_field_embed_model_photos.field_embed_model_photos_provider AS node_data_field_embed_model_photos_field_embed_model_photos_provider,
node_data_field_embed_model_photos.field_embed_model_photos_data AS node_data_field_embed_model_photos_field_embed_model_photos_data,
node_data_field_embed_model_photos.delta AS node_data_field_embed_model_photos_delta,
node.type AS node_type,
node.vid AS node_vid,
node_data_field_model_photos.field_model_photos_fid AS node_data_field_model_photos_field_model_photos_fid,
node_data_field_model_photos.field_model_photos_list AS node_data_field_model_photos_field_model_photos_list,
node_data_field_model_photos.field_model_photos_data AS node_data_field_model_photos_field_model_photos_data,
node_data_field_model_photos.delta AS node_data_field_model_photos_delta,
node.title AS node_title
FROM node node
LEFT JOIN votingapi_cache votingapi_cache_node ON node.nid = votingapi_cache_node.content_id AND votingapi_cache_node.content_type = 'node'
LEFT JOIN content_field_embed_model_photos node_data_field_embed_model_photos ON node.vid = node_data_field_embed_model_photos.vid
LEFT JOIN content_field_model_photos node_data_field_model_photos ON node.vid = node_data_field_model_photos.vid
WHERE node.type in ('embedded_model_portfolio', 'model_portfolio')

I have also realised that grouping values makes pager appear.

Could anyone help with this.
1. CCK version - 6.2.x
2. imagefield version - 6.x.3.1
3. permissions for your tmp and files directory - 777 for tmp and files
4. download method (public or private files)- public
5. imagefield configuration - mutiple value and unlimited
6. expected results - pager should appear in views for not grouped fieild values
7. the unexpected actual results - pager doesnt come.
8. Steps to reproduce the problem.- create a node with image field which allows unlimited mulitple values.
ceate view with grid view and apply filters like node type and node published.
Regards
Sagar

Comments

quicksketch’s picture

Assigned: sagar ramgade » Unassigned
Category: bug » support

I haven't been able to reproduce your issue. This is what I did:

- Make a content type with an "unlimited" value image field.
- Create a node with 5 images in that field.
- Make a view with the following configuration:

- Added the field "Content: images icon image linked to node" (my multi-value image field), uncheck the option for "Group multiple values".
- Added filter "Node: Nid = 387" (my node that contains five images)
- Set the following options: "Use pager: Yes" and "Items per page: 4".

The pager shows up and works as expected. Could you outline steps to produce a view in which this does not work?

sagar ramgade’s picture

hi,

After creating the content type with multiple values, added the node with 8 images in it(nid=472).
Steps involved in creating a view :
1.
Name: Page
Title: Photos
Change settings for this styleStyle: Grid
Change settings for this styleRow style: Fields (no inline fields)
Use AJAX: No
Use pager: Yes
Items per page: 4
Distinct: No
Access: Unrestricted
Caching: None
Exposed form in block: No
Header: None
Footer: None
Empty text: None
Theme: Information

2.
Page settings
Path: photos
Menu: No menu

3.Relationships
None defined

4.Add Arguments
None defined

5.Sort criteria
Node: Post date desc

6. Fields
Content: Photos squarethumbnail image linked to node (do not group multiple values)
Node: Title
Node: Edit link Edit link
Node: Comment count Comments count
User: Name Posted by

7.Sort criteria
Node: Post date desc

8.Filters
Node: Published Yes
Node: Type = Upload Photos
Search: Search Terms optional
Settings (exposed)
Taxonomy: Term exposed
Node: Nid = 472

It shows only 4 images thats it, the pager didnt appear.
1st image shows the views settings and second image is the full view.
3rd image shows without the node id filter to show how many ungrouped images are there with unlimited items per page, there are 7 nodes in total. and 28 images in total.
4th image shows that i ve allowed only show first value of the node and items per page to 4, in this case the pager comes.
I hope its very clear now grouping multiple values solves the problem.

sagar ramgade’s picture

StatusFileSize
new706.79 KB
new215.83 KB

hi the first and 3rd image is not opening here i will upload again.

sagar ramgade’s picture

Hi,
I think its a certainly problem with cck and views as the same issue i am facing with embedded image field.
I have tried opening issues in cck and views module's issue queue.

quicksketch’s picture

StatusFileSize
new291.99 KB

I rebuilt your entire view and it doesn't look like I can reproduce the same problem. The pager appears with all the image field values grouped or not grouped. I'd suggest trying out the latest versions of CCK and Views if you're not already, perhaps it's a bug that has already been fixed.

sagar ramgade’s picture

Hi, I found solution for my problem it is a bug with drupal core.
I have applied the patch given in the comment # 24 :
http://drupal.org/node/284392#comment-1049183

Got a reference from :
http://drupal.org/node/366419

its not a problem with cck, views or image field.

Cheers
Sagar

sagar ramgade’s picture

Status: Active » Fixed

Hi,
Marking it as fixed. :-)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.