Inline C# Function: BaileyWeb.University.Data.ListNewsRecentRSS

The Inline C# Function named ListNewsRecentRSS retrieves combined data about the organisation (Global Datatype BaileyWeb.University.Organisation) and a list of news articles from the past 12-months (Page Datafolder BaileyWeb.University.News) and outputs it formatted as RSS.

Files

The following files are supplied with the University Package:

  • ~/App_Data/Composite/InlineCSharpFunctions/BaileyWeb.University.Data.ListNewsRecentRSS.cs

Parameters

There is one parameter:
Parameter: Label: Help: Type: Default: Widget:
Path Path The URL Path for the main news page, excluding the domain name. String news Text Box

Function Markup

None.

Sub Functions

None.

Text Strings

None.

Sample Output Code

Result with the Path input parameter value of press:

<rss version="2.0">
  <channel>
    <title>Bailey University</title>
    <link>http://uni.baileyweb.online/press</link>
    <description>We offer pre-degree study, undergraduate degrees and postgraduate degrees, focusing primarily on arts and humanities subjects, supported by a strong outcomes-based provision.</description>
    <pubDate>Sun, 20 Jun 2021 12:06:44 UTC+1</pubDate>
    <item>
      <title>Helping University Webmasters Break Free...</title>
      <link>http://uni.baileyweb.online/press/2020/1/1/tCmcpRsd</link>
      <description>... and helping Universities save time and money</description>
      <pubDate>Wed, 01 Jan 2020 00:00:00 UTC+0</pubDate>
    </item>
  </channel>
</rss>

Updated: 27 June 2021