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,
my question is fairly simple, how could i put an image for every feed in my rss view?
i tried to make this but it seems that views_rss skip html completly, also there is no place in Style: RSS Feed - Fields so i can put a field for image. any suggestion ??
Comments
Comment #1
jdln CreditAttribution: jdln commentedSubscribing.
Comment #2
bleen CreditAttribution: bleen commentedsubscribe
Comment #3
naero CreditAttribution: naero commentedSubscribe
Comment #4
TimG1 CreditAttribution: TimG1 commentedAdd all the fields you would like to include in your feed in the standard Views Fields area. Example: Image, Body, whatever other CCK fields.
Check "Exclude from display" for all the fields except the last one. In the last field check "rewrite the output of this field" and then use the tokens to put the previous fields in the output of this last field.
Then choose your last field as the Description for the settings under the RSS View Style Options > Field Usage > Description.
Simple Example:
Enjoy!
-Tim
Comment #5
fizk CreditAttribution: fizk commentedThis is exactly what I would expect, but it's not working.
views_rss is not respecting the "Rewrite the output of this field" setting. It seems to be taking the raw value instead.
Comment #6
fizk CreditAttribution: fizk commentedOops...I added the wrong field.
CCK has two fields for images, one is named something like "(field_example_image)", which is the one you should choose, and the other one named "(field_example_image) - data" - don't choose that one.