Closed (duplicate)
Project:
Feed Element Mapper
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Sep 2008 at 15:55 UTC
Updated:
1 Aug 2009 at 14:03 UTC
Jump to comment: Most recent file
Comments
Comment #1
alex_b commentedImage field patch to be ported to 6: http://drupal.org/node/224235
Which image and audio fields are you asking for?
Comment #2
peter.walter commentedI would love to see a mapper to take an image from an RSS feed, copy the image to the local fileserver, and insert it into the CCK imagefield.module field.
The D5 patch works in part with D6 - it downloads the image(s) to a temp directory, but the file data does not get inserted into the CCK field.
Presumably there is a missing call or something, but I am getting lost in the imagefield/filefield/cck complexities!
Comment #3
peter.walter commentedAttached is a modified/hacked version of the D5 . I had to add some code to write the image to the drupal temporary directory, call field_file_save_file() to save the file in the widget specified directory and call field_file_save() to update the image-node association in the database.
Seems to work for my needs if others would like to test.
Peter
Comment #4
Krummrey commentedExcept for the Audio part it's a duplicate to #224235: Mapper for CCK Image Field
Changed to code needs review
Comment #5
loze commentedthe patch in #3 appears to work.
however I get this error when a feed is parsed and made into nodes.
Comment #6
ball.in.th commentedhttp://drupal.org/node/224235#comment-1373150 is a slightly updated version of the patch in #3. It seems to work with all the latest modules, i.e., Feed Element Mapper 6.x-1.0-beta4, FileField 6.x-3.0-beta1, ImageField 6.x-3.0-beta1.
Comment #7
alex_b commentedSetting this to duplicate now, for imagefield/fielfield refer to #319538: Mapper for FileField / ImageField . Audio field: #336985: Mapper for Embedded audio field (emaudio) field