Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Viktor Ekholm 8 posts 98 karma points
    Sep 26, 2017 @ 13:45
    Viktor Ekholm
    0

    Generate RSS feed - general ideas

    I have an existing Umbraco 7.7.1 installation with a lot of content for which I am trying to develop functionality for generating an RSS feed for at least one of the document types that are published.

    How ever, being very new to Umbraco I would be grateful for some pointers in the right direction to implementing this functionality in a civilized manner. In our solution we have the setting disableAlternativeTemplates set to true which I think implies that I should not inject an alternate template.

    Should I add an RssController responsible for outputting the RSS view of the content? Would it give me any advantage to create a new document type for the RSS content or can I base my new RSS/XML view on the existing type?

    Not really sure what I'm looking for. Just some guidance and/or reading material. Thank you in advance. :)

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Sep 26, 2017 @ 21:52
    Alex Skrypnyk
    0

    Hi Viktor

    Try to use some feed packages for Umbraco, it's the easiest way of doing stuff, try this one:

    https://our.umbraco.org/projects/website-utilities/eyecatch-rss-feed-generator/

    Thanks,

    Alex

  • Marcio Goularte 388 posts 1360 karma points
    Sep 27, 2017 @ 01:50
  • Viktor Ekholm 8 posts 98 karma points
    Oct 05, 2017 @ 11:35
    Viktor Ekholm
    101

    I decided to write my own controller which inherited from RenderMvcController, set up an Umbraco route map for it and then rendering the feed using System.ServiceModel.Syndication.SyndicationFeed.

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Oct 05, 2017 @ 14:19
    Alex Skrypnyk
    0

    Nice solution, Viktor

Please Sign in or register to post replies

Write your reply to:

Draft