Our.Umbraco.SuperEasyRss 1.0.0

dotnet add package Our.Umbraco.SuperEasyRss --version 1.0.0
                    
NuGet\Install-Package Our.Umbraco.SuperEasyRss -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Our.Umbraco.SuperEasyRss" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Our.Umbraco.SuperEasyRss" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Our.Umbraco.SuperEasyRss" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Our.Umbraco.SuperEasyRss --version 1.0.0
                    
#r "nuget: Our.Umbraco.SuperEasyRss, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Our.Umbraco.SuperEasyRss&version=1.0.0
                    
Install Our.Umbraco.SuperEasyRss as a Cake Addin
#tool nuget:?package=Our.Umbraco.SuperEasyRss&version=1.0.0
                    
Install Our.Umbraco.SuperEasyRss as a Cake Tool

Super Easy RSS

This is a simple package for Umbraco v10+ designed to allow easy adding of an RSS feed to an existing blog or media/news section.

It is designed to be as unobtrusive and minimal in code, so as to not add too much in to existing projects.

Project Makeup

The solution consists of:-

  • Document Type 'Rss Feed Page'
  • Template for rendering this

All logic is performed within the template and no additional models, controllers or c# code files are used. This is deliberately done to keep everything as self-contained as possible.

How To Use

  1. Add the package to your project.
  2. Run Umbraco back office.
  3. Configure any doctypes you'd like 'Rss Feed Page' to be available beneath. This will usually be the root folder of a blog or news section.
  4. Create a new page of type 'Rss Feed Page' where you want the RSS feed to sit.
  5. It is recommended, but not necessary, to manually add to the HTML for the publically viewable root page of the blog or news section a reference back to the RSS feed using the link tag. ie:-

<link rel="alternate" type="application/rss+xml" href="/url/to/feedpage" title="RSS Feed for x">

By default the RSS feed will use the immediate parent as the 'root' of the feed, and include all descendent documents unless they have an 'Exclude From Rss' True/False field set to true. Titles and descriptions will search for sensibly named fields by default, and published date and creator will take details from the published node.

Different roots, restrictions to certain doctypes or fields to read can be configured on the created RSS page.

The page cannot be used at the site root unless an explicit alternative root node has been picked as it will otherwise have no parent in that case.

Use with xStatic

This can be used with the static site generator package xStatic from Sam Mullins, however by default the feed page will be generated as an HTML file which returns a text/html mime type by default. Some feed readers will be fine with this, however ideally it should be marked as containing XML. There are more involved ways of doing this in code in xStatic, however one of the simplest methods is with the back office tooling for actions it provides.

Once you know the URL your feed page will appear on simply set up a new FileRenameAction action to rename the default generated .html file as a .xml file as renames are performed at the end.

For example:-

FilePath: blog/rss/index.html

NewFilePath: blog/rss/index.xml

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 1,036 1/12/2024
0.9.6-beta 144 12/26/2023
0.9.4-beta 144 12/20/2023