Question

I am exporting some XML feeds using Views. One of these fields needs to look like this:

<image>http://example.com/path/to/myimage.jpg</image>

I am storing my image in a CCK field. When selecting that field in Views, these are the options provided:

enter image description here

I don't need an teaser, full node, editable something, or HTML formatted link, just the path to the image. How do we alter that Format selector?

Was it helpful?

Solution

If your content type is blog, for example, and it has a CCK image field, create a relationship from your blog content type to the image content type.

Create a new field in the View and select the field_image from the image content type, make sure to select the relationship you created:

enter image description here

And select URL to file from the Format dropdown:

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with drupal.stackexchange
scroll top