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. :)
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.
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 totrue
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. :)
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
check this:
http://letswritecode.net/articles/razor-rss-feed-with-umbraco/
http://www.codeshare.co.uk/blog/simple-umbraco-rss-xml-feed-example/
I decided to write my own controller which inherited from
RenderMvcController
, set up an Umbraco route map for it and then rendering the feed usingSystem.ServiceModel.Syndication.SyndicationFeed
.Nice solution, Viktor
is working on a reply...