RocketCDS
Installation
Integration
RocketCDS
Installation
Integration
Installing AppThemes
Partial And Shared Templates
Razor Tokens
Dependancy
JQuery Validation
DNN Search
File Download
Rocket Tools
ChatGPT
DeepL
Simplisity JS
Command Attributes
Methods
Class Events
Field Data
Utility Functions
Ajax DropDownList
RocketContent
Create an AppTheme
Adding CSS and JS
Adding Resx
Multi-Row AppTheme
DataObjects
Razor Tokens
Shared Templates
Snippets
ArticleLimpet
ArticleRowLimpet
RocketDirectory
Create an AppTheme
DataObjects
Razor Tokens
Shared Templates
MenuManipulator
Category Menu
Text Search
Property Filter
Tag Filter
Secure Document
Snippets
RSS feed
Related Articles
ArticleLimpet
RocketForms
Create an AppTheme
DataObjects
Functionality
Module Settings
# RSS Feed RocketDirectory and Wrapper Systems can implment an RSS feed. This is activated by a url with specific parameters. Example URL: ``` /Desktopmodules/dnnrocket/api/rocket/action?cmd=rocketdirectoryapi_rss ``` ``` /Desktopmodules/dnnrocket/api/rocket/action?cmd=rocketblogapi_rss ``` ``` /Desktopmodules/dnnrocket/api/rocket/action?cmd=rocketnewsapi_rss ``` ## RSS URL Token To make creating the RSS URL easier, you can use a razor token. ``` RssUrl(int portalId, string cmd, int numberOfMonths = 1, string sqlidx = "", int catid = 0) ``` ``` RssUrl(int portalId, string cmd, int yearDate, int monthDate, int numberOfMonths = 1, string sqlidx = "", int catid = 0) ``` *portalId = PortalId* *cmd = RSS command (rocketdirectoryapi_rss)* *yearDate = Starting Year (Default to current year)* *monthDate = Starting Month (Default to current year, 1st of the month is always used)* *numberOfMonths = number of months to search (Optional)* *sqlidx = SQL index key (Optional)* *catid = categoryID to search (Optional)* Example: ``` @RssUrl(portalData.PortalId,"rocketblogapi_rss") ``` ``` @RssUrl(portalData.PortalId, "rocketblogapi_rss", DateTime.Now.Year, DateTime.Now.Month) ``` NOTE: Some systems may have their own RSS feed token, like RocketEventsAPI. *ONLY use in RocketEventsAPI* ``` @RssEventUrl(portalData.PortalId,sessionParams.Get("cmd"),sessionParams.GetInt("month"),sessionParams.GetInt("year")) ``` Example code ```
rss_feed
``` *NOTE: The RssUrl() token forces https:// protocol.* ### Build your own Rss Url without using the razor token ```
rss_feed
``` ## RSS template The RSS is built using a razor template in the AppTheme selected for the system. The template should be call "RSS.cshtml", if no template exists in the AppTheme no RSS feed will be generatored. Example RSS.cshtml template: (CDATA should be used) ``` @inherits RocketDirectoryAPI.Components.RocketDirectoryAPITokens
@using DNNrocketAPI.Components; @using RocketDirectoryAPI.Components; @AssigDataModel(Model) @{ var rssList = (List
)Model.GetDataObject("rsslist"); }