Custom Fields in RSS Feed

Posted by Community Admin on 03-Aug-2018 19:22

Custom Fields in RSS Feed

All Replies

Posted by Community Admin on 28-May-2014 00:00

I'm creating an RSS feed for a specific tag in news. This RSS is getting digested by another external program. I need to out a field in the feed called "campus" and give it a static value for all items.

eg.

<entry>
<title>Whatever</title>
<campus>68<campus>
<content>stuff</content>
</entry>

Is this possible in the UI?

Posted by Community Admin on 29-May-2014 00:00

Hello Mathew,

Thank you for contacting us.

We do not offer such functionality out of the box. This means you will need to customize your RSS Outbound Pipe in order to achieve this. I can recommend you go through my blog post. In the code I am adding a custom blog post field to the feed, but the methodology for adding a static value is the same. Simply extend the Syndication item using the method SyndicationItem.ElementExtentions.Add() and pass your value there.

I hope this helps. Feel free to get back to us if you need additional assistance.

Regards,
Ivan D. Dimitrov
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

This thread is closed