Hi,
I have an CSV files with the following fields. title, id, data_thumb (The articles main image), and data_body.
The image in the data_thumb i have mapped to a field called "mainimage". This image is downloaded and get stored in files folder.
The data_body is the complete content of the article. With embedded images, links etc. The images here has the src of the original website. When importing i would like these images to get downloaded to the files folder in drupal, and get the src updated. When importing today, the images display in the article, but the src point to the exisiting website with the image.
Tried the import (same CSV file and settings) on a site with a Panopoly profile, and there it worked. All the images was downladed and saved in files/resize/remote.
Can not get the images to download on a clean new core install. Is there any modules or configurations (that apparently is done in Panopoly) that need to be done to download the images in the body?
Thanks! :)
Comments
Comment #1
dansyv commentedDont anyone got any suggestions? Getting close to deadline on our project, so would really like to figure this out. Thanks :)
Comment #2
phobia commentedHi dansyv,
The exact same thing is going on here.
I find it wierd that Panopoly would extend a module that it doesn't come bundled with, but somehow it seems to do so.
Unless this already is a feature of the Feeds module, albeit currently an unstable one. I have however not been able to replicate this functionality without Panopoly installed.
I've also tried the Feeds Image Grabber module for this without luck.
Have you made any progress?
Comment #3
dansyv commentedHi,
Yes i tried Image grabber to. No progress here :(
Comment #4
dansyv commentedSo is this working for everybody else? No suggestions on this? Any tip on anywhere else to get some help? Completely stuck here, and really need this to work asap :/
Comment #5
tterranigma commentedYou could use Feeds Image Grabber (have a look at the issue queue on how to make it work with the latest feeds version).
Another solution would be to use Feeds Tamper PHP and use some code to manually match the img tags in your body field. Eg (if the img tags in the body follow a specific structure everywhere):
where you can use your own regexp (I took the above from here).
If the img tags have a random structure (eg the class attribute may or may not be present) then your code will have to use HTML parsing. See here.