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 1 parameter:Parameter: | Label: | Help: | Type: | Default: | Widget: |
---|---|---|---|---|---|
Path | Path | The main news page. | Data Reference (C1 Page) | Text Box |
Function Markup
None.
Sub Functions
None.
Text Strings
None.
Sample Output Code
Result with the Path input parameter value that will resolve to press:
<rss version="2.0"> <channel> <title>Bailey University</title> <link>http://uni.baileyweb.digital/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.digital/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>