+1-888-365-2779
Try Now
More in this section

Forums / Suggestions / RSS templating

RSS templating

3 posts, 0 answered
  1. Jason
    Jason avatar
    31 posts
    Registered:
    07 Nov 2007
    04 Jan 2008
    Link to this post
    We have template for a variety of news items for the Single News and News List, it would be nice if we could more precisely define the what we want the generated RSS to look like
  2. Jason
    Jason avatar
    31 posts
    Registered:
    07 Nov 2007
    04 Jan 2008
    Link to this post
    the main thing I am looking for, and I could be overlooking an option, is visibility for the publish date/time on the feed
  3. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    Registered:
    18 May 2013
    08 Jan 2008
    Link to this post
    Hello Jason,

    Currently, the News Rss provider does not render the publication date of the item in the RSS feed but rather used to notify the Rss readers that this is the date when the content was published. So when you subscribe to your Rss from any reader, it would show you the publication date. This is the reason why we did not add this date to the item's content.

    Anyway, if you really need this date to be shown, you have to override the news RssChannelProvider and its GetRssItems method. Once you implement the new logic, you should register the newly created class in the web.config through the Rss -> channelProviders section in the following way:

    <add name="News Rss Modified Provider" type="YourType, YourAssembly" settingsControl="Telerik.News.WebControl.Rss.RssSettingsControl, Telerik.News" viewSettingsControl="Telerik.News.WebControl.Rss.RssViewControl, Telerik.News" />

    Note that you should specify the control which will be shown when you set up your feed (settingsControl) and the control which would show the result once you save the feed (viewSettingsControl). In case you want to allow more options to be specified by the user, you can override the settings and view controls as well.

    Hope this helps.

    All the best,

    Vassil Daskalov
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
3 posts, 0 answered