I wanted to add a thumbnail image to each item in the RSS feed.
I imagine I need to include something along the lines of:
var thumbnail = item.thumbImage *what do I put here?*
And then add the variable to the line that lists the items:
// Add the SyndicationItem to the list var syndicationItem = new SyndicationItem(title, thumbnail, content, itemAlternateLink) {Id = itemAlternateLink.AbsoluteUri };
But I'm not sure how to encode the image where the thumbnail variable is defined?
Adding a thumbnail image to RSS
Hi folks,
I wanted to add a thumbnail image to each item in the RSS feed.
I imagine I need to include something along the lines of:
And then add the variable to the line that lists the items:
But I'm not sure how to encode the image where the thumbnail variable is defined?
Would anyone be able to give me a pointer here?
Many thanks (as ever!),
Barney
I guess the thumbnail is just a URL.
in razor you would write something like this:
Hi Damiaan,
Thanks ever so much for your reply.
Unfortunately it didn't work. I think it's because there's a method defined elsewhere.
Going to have to have a rethink here...
Cheers for your help.
Barney
is working on a reply...