Forum Discussion

nicolasbajko's avatar
9 years ago

Custom images on RSS feed

We created a custom Gallery board to list Forum posts with a thumbnail image, which is added to the post as an attachment. We used this approach because we don't want to have the thumbnail image in the post body.

We have no problem with the thumbnails in the Gallery, but the thumbnails are not being included in the RSS feed.

 

How can we update or modify the RSS feed of that board in order to include the attached thumbnail images as the feed item image?

 

We believe we should change how the feed is generated, adding the <enclosure> tag on each feed item in order to specify the thumbnail image, but if someone have another idea, it would be helpful.

2 Replies

  • DougS's avatar
    DougS
    Khoros Oracle
    9 years ago

    There is no way to add custom data to the RSS feed, but you could create a custom endpoint (making calls to get the data you need using the rest context object) as an alternative to using the RSS feed. Your endpoint could make the SELECT * FROM images WHERE message.id = '<message id>' LiQL call to get the images for a given message

     

    If you'd like to see us add the <enclosure> tag with attachments/images related to the message, I would recommend submitting an idea for this on our product ideas board.

     

    -Doug

  • So, this would involve regenerate the entirely RSS feed programmatically, adding the <enclosure> tag? Or I can get the RSS feed from the API to update it in the endpoint?