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

cmseasy’s picture

Try CCK: embedded media fields and media_image_flotsam.
Maybe that solves your issue.

Danny_Joris’s picture

Thanks, Martin. I'll try it when I get xPath parser working again. #908458: warning: mysql_real_escape_string()

twistor’s picture

This can be done using Feeds Tamper and the rewrite plugin.

twistor’s picture

Assigned: Unassigned » twistor
Status: Active » Fixed

this 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Summit’s picture

Hi, This is great info! Greetings, Martijn