Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I'm trying to use the Feeds Xpath Parser module together with the Feeds module. I am trying to create nodes from Flickr images. Now the xml output for Flickr images only include the image ID, not the image urls (which I need to save in the emfield cck field to render Flickr image references.)
Now I was thinking: is it possible to add a prefix (a url) to a string that gets parsed from the xml file?
As an alternative I could save just the ID and then render it through the theme layer. But I rather get it correct before saving the node.
Thanks in advance!
Cheers,
Danny
Comments
Comment #1
cmseasy CreditAttribution: cmseasy commentedTry CCK: embedded media fields and media_image_flotsam.
Maybe that solves your issue.
Comment #2
Danny_Joris CreditAttribution: Danny_Joris commentedThanks, Martin. I'll try it when I get xPath parser working again. #908458: warning: mysql_real_escape_string()
Comment #3
twistor CreditAttribution: twistor commentedThis can be done using Feeds Tamper and the rewrite plugin.
Comment #4
twistor CreditAttribution: twistor commentedthis can be done in the dev version now that XPath string functions are supported.
example: concat('http://flicker.com/images/', emlement_you_want/text())
see http://www.w3.org/TR/xpath/#section-String-Functions
Comment #6
Summit CreditAttribution: Summit commentedHi, This is great info! Greetings, Martijn