Just put together this module heavily based on the video_cck_feedapi_mapper, but it essentially does the same thing as that mapper only it will allow you to map a flickr feed to an emfield image cck field.
This has just been tested a few times using feeds from flickr and picasa (worked perfectly for picasa, but i think there is an issue with the picasa regular expression in the emfield module's picassa.inc because it isn't parsing the "original url" as being from picasa, though it is getting inserted into the image field as can be seen in the screenshot of my content_type_photo table).
NOTE: The .txt file is actually the mapper.inc file, just rename the extension to .inc (I couldn't upload a .inc file to the commet, sorry)
Comment | File | Size | Author |
---|---|---|---|
#2 | bug flickr mapper.JPG | 10.79 KB | nbchip |
feedapi_mapper_image_ncck.txt | 1.29 KB | BlakeLucchesi | |
Picture 3.png | 100.6 KB | BlakeLucchesi |
Comments
Comment #1
BlakeLucchesi CreditAttribution: BlakeLucchesi commentedComment #2
nbchip CreditAttribution: nbchip commentedSometimes it creates empty nodes... See the attach
and when i remove this evaluation
valid_url($feed_element)
it works fineComment #3
Firetracker CreditAttribution: Firetracker commentedThis should be included in in Feedapi_mapper distribution....
Comment #4
Krummrey CreditAttribution: Krummrey commentedHad the same issue on empty nodes.
The feed would update but only empty nodes were created.
Comment #5
nbchip CreditAttribution: nbchip commentedtry in line 31 changing
//if (is_string($feed_element) && valid_url($feed_element)) {
to
if (is_string($feed_element)) {
im not sure why , but for me it helped.
Comment #6
mtndan CreditAttribution: mtndan commentedI'm not able to get this working on the Drupal 6 version - any ideas? Thanks in advance.
Comment #7
Wouter Van den Bosch CreditAttribution: Wouter Van den Bosch commentedJust to a brief thumbs up on this great little addittion. Was looking for this and you made my work a whole lot easier ! Thanks !
Comment #8
alex_b CreditAttribution: alex_b commentedCan we move this issue to 6?
Comment #9
alex_b CreditAttribution: alex_b commentedCode needs work. Response to #5
Comment #10
spiffyd CreditAttribution: spiffyd commentedAnyone working on this?
Comment #11
alex_b CreditAttribution: alex_b commentedComment #12
calte CreditAttribution: calte commentedI'm looking forward to this!