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

jdln’s picture

Subscribing.

bleen’s picture

subscribe

naero’s picture

Subscribe

TimG1’s picture

Status: Active » Closed (works as designed)

Add 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:

  1. Add your image field and check exclude from display.
  2. Add your body field and check rewrite the output of this field.
  3. In your body rewrite add your image token from the replacement patterns.
  4. Assign the body field as your description in the RSS View Style Options > Field Usage > Description.

Enjoy!
-Tim

fizk’s picture

Version: 6.x-1.0-beta5 » 6.x-2.0-rc2
Category: feature » bug
Status: Closed (works as designed) » Active

This 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.

fizk’s picture

Status: Active » Closed (works as designed)

Oops...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.