Active
Project:
Feeds XPath Parser
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2011 at 03:09 UTC
Updated:
18 Oct 2015 at 19:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
travisc commentedHave you tried feeds image grabber? http://drupal.org/project/feeds_imagegrabber
Comment #2
sbydrupal commentedTried Feeds_imagegrabber, yet, it completely runs in its own and it looks quite heavy duty module. Trying to find out whether as part of xpath parser, it can be achieved via Feed Import process with certain known tags...
Comment #3
problue solutionssubscribe
Comment #4
tommybyskovlund commentedany hints on how to do this - or whether it's possible?
Comment #5
problue solutionsSurprisingly it works by just capturing the URL of the image in the xpath expression and mapping it to a regular imagefield.
feeds_imagegrabber is not required.
Comment #6
druplicate commentedImporting images into a multi-valued image field using image URLs from an XML file is not working for me. The debug output shows the image URLs being parsed correctly, but the images don't get imported.
The XML structure is:
The context is: //unit
The Xpath query for the image field is: unit_details/images/image/uri
I played around with the image grabber module for feeds, but it failed also.
Is it possible to import images using the URL from the XML file?
I'm using feeds version 6.x-1.0-beta12+18-dev, and feeds xpath parser version 6.x-1.12 (or 6.x-1.x-dev)
UPDATE:
I was able to import images using the CSV importer and the image URL, so this appears to be a problem with Xpath Parser, not Feeds.
Comment #7
druplicate commentedOops, duplicate post.
Comment #8
druplicate commentedTried this in D7 and it throws the error: "Download of example.com/files/content/en-thailand-villa-102-1.jpg failed with code -1002."
I can't find what component is responsible for that error code. cURL doesn't seem to have error codes like that. Tried forcing Feeds NOT to use cURL (as suggested here: http://drupal.org/node/752862#comment-2766422) but it still fails with the same error code. This fails on my local dev box and on the live server (host is Omega8.cc).
It's puzzling though, since importing the same URL using the CSV parser works ok.
Comment #9
twistor commentedThis is a Feeds issue.
Try restarting apache.
Comment #10
twistor commentedComment #11
druplicate commentedI hijacked this original thread because I thought it was similar and seemed to be an Xpath Parser issue, not feeds, but I'll return this thread to xpath and resubmit a new request at Feeds.
Comment #12
vonfracas commented#5 is awesomely correct. It just works™!
Comment #13
kenorb commentedThe same for 7.x.It's trying to creating the values, but I've only have this rubbish as shown on the screenshot.
Ignore. My problem is related to bad URL structure so Feeds doesn't recognise the file extension, so I need either to allow custom extension (asp) or rename the target filename.