How to alter the Views field Format drop-down menu
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:
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?
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:
And select URL to file from the Format dropdown:
Licensed under: CC-BY-SA with attribution
Not affiliated with drupal.stackexchange