HttpModule Changes and Configuration
The first step is to provide a configurable value with the name of the RSS ASPX page. We can achieve this by placing the following new entry in the top-level Web.Config
file of the CSK:
<pagePaths>
<add key="basePage"
value="/communityDefault.aspx" />
<add key="baseService"
value="/communityService.asmx" />
<add key="baseRssFeed"
value="/communityRSS.aspx" />
</pagePaths>
For this exercise, we will name our page communityRSS.aspx
. In the Web.Config
excerpt that we just saw, the path and filename of some of the special CSK pages appear under the pagePaths
element in Web.Config
. The CommunityGlobals
class manages these entries. The static properties of CommunityGlobals
allow the rest of the CSK software to access configuration items without knowing all of the details of how the items are stored. This level of indirection is a good practice, which we will follow by adding the UrlBaseRSSFeed
property to CommunityGlobals:
public...