In mojoPortal content management system version 188.8.131.52 we introduced the Recent Content feature which appears in the feature list and can be added to a CMS page like any other feature. It is the most user friendly way to show recently updated content on your site.
However, we also created an RSS feed that can be used so that users could subscribe to the feed using a feed reader like google reader, or the feed could be used in conjunction with the feed manager.
The recent content feed is globally disabled by default and will redirect to the site home page. To enable it add this in user.config:
<add key="DisableRecentContentFeed" value="false"/>
Once enabled globally, if you want to disable it for specific sites in an installation that is possible by adding site specific settings to disable it like this:
<add key="Site1-DisableRecentContentFeed" value="true"/>
The url for the feed is at yoursiteroot/Services/RecentContentRss.aspx
<add key="RecentContentFeedMaxDaysOld" value="30"/>
<add key="RecentContentDefaultItemsToRetrieve" value="10"/>
<add key="RecentContentMaxItemsToRetrieve" value="60"/>
<add key="RecentContentChannelDescription" value=""/>
<add key="RecentContentChannelCopyright" value=""/>
<add key="RecentContentChannelNotifyEmail" value=""/>
<add key="RecentContentFeedTimeToLive" value="10"/>
<add key="RecentContentFeedCacheTimeInMinutes" value="10"/>
For multi site installations, each of the above also support the Site1-SettingName syntax so that different sites could be configured differently.
RecentContentMaxItemsToRetrieve constrains the requested number of items specified by a query string paramater n=
will return the 60 newest items. If the query string parameter requests a higher number than the configured RecentContentMaxItemsToRetrieve, then the RecentContentMaxItemsToRetrieve will be used.
The returned results can also be limited to a specific feature like the Html Content feature or the Forums or Blog, etc. To do this you need to know the feature guid and pass it in the query string param f=
The feature guid for the HTML Content Feature is: 881e4e00-93e4-444c-b7b0-6672fb55de10
so to filter by that continuing with our previous url example:
would return only results that are from the Html Content feature.
The feature guids for other known features are:
|Event Calendar Pro
By default the feed will return content based on the modified date so it should return both new articles and recently updated ones. If you want to make it use the created date so that it only returns newly created content you can pass the query string parameter gc=true as in this example:
RecentContentFeedTimeToLive is populated on the ttl property of the RSS feed and feed consumers "may" use that to determine how often to refresh the feed.
RecentContentFeedCacheTimeInMinutes controls the actual output cache of the feed itself.