Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 963321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:39:11+00:00 2026-05-16T01:39:11+00:00

I have a content types with 3 file fields, all of them can have

  • 0

I have a content types with 3 file fields, all of them can have an unlimited number of images. I need to make a view that returns the title of the content and the images name inside an array (I’m using amfphp with services). The problem is that when I add the relationship to the content field_pics fid I get as many duplicate nodes as the number of the images in the field:

EG:

[10] => stdClass Object
    (
        [nid] => 56
        [node_title] => asd asd asd
        [node_language] => 
        [node_nid] => 56
    )

[11] => stdClass Object
    (
        [nid] => 56
        [node_title] => asd asd asd
        [node_language] => 
        [node_nid] => 56
    )

This is the query:

SELECT node.nid AS nid, node.title AS node_title, node.language AS node_language, node.nid AS node_nid 
FROM node node  
LEFT JOIN content_field_colori node_data_field_colori ON node.vid = node_data_field_colori.vid 
LEFT JOIN files files_node_data_field_colori ON node_data_field_colori.field_colori_fid = files_node_data_field_colori.fid 
WHERE (node.status <> 0 OR (node.uid = ***CURRENT_USER*** AND ***CURRENT_USER*** <> 0) OR ***ADMINISTER_NODES*** = 1) AND (node.type in ('prodotto')) 
ORDER BY node_nid ASC

I don’t know how to fix this.

ANy help is appreciated.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:39:12+00:00Added an answer on May 16, 2026 at 1:39 am

    I think I understand what you’re trying to do now. Unfortunately, Services’s views support isn’t all that great when it comes to CCK. There are a lot of different issues (e.g. one, two, three) with a lot of different patches and comments, but based on my understanding, to capture what you want is to not use relationships and to use the Node row style. If you use relationships, you get the output you’re seeing, and if you use the Fields row style, the ImageField fields never load.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a content delivery system that delivers many different content types to devices.
I need to develop a site on Drupal 7. I have some content types
I have several custom content types and in one specific one I need to
I have a file that I make and zip up using the gzip module,
I have 2 websites with similar content types. Let's say an event-content type with
I have an archetype content type that previously was not folderish. Now I have
I have a list in SharePoint 2010 with some columns. All are default types.
We have a content type with two imagefield / filefield fields, and after migrating
Think that I have many activities,and all I want is this: I have a
I've got two content types, both have a node title and a document attachment,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.