Andornot Consulting

RSS Control for WebPublisher

Overview

The RSS Control creates RSS feeds from Inmagic WebPublisher PRO databases. Any valid WebPublisher query can be turned into a feed using standard WebPublisher canned query syntax. You plug in the query, and it does the rest.

The RSS delivery model can pretty much be boiled down to "what's the latest?" A typical query which works well is [find DateCreated > @DATE - 60], which in Inmagic query syntax means "find all records created within the last 60 days." The query results will change as time goes by, and anything added to the database will be present in the feed. Of course, the query can be anything you can imagine, but this is a good starting point.

Examples

Features

Caching
The variable caching period can be adjusted so the feed always loads quickly. If content is updated once per day, for example, then the caching period can be set to 12 hours. Without caching, the feed must be constructed fresh with every request, which burdens server resources unecessarily and is always slower for the user.

Link to Full Item Details
An optional but very useful feature is the ability to link back to a full display view for each feed item. The link is actually a canned query, and lets readers see the item in its original context as part of your site.

Date Culture Formats
Those in the USA can get their dates in their preferred format, and those in Canada, Australia, Europe, and elsewhere can get item dates in their preferred format. Uses standard formats, e.g. en-US, en-GB, en-CA, etc.

Sort Expressions
Default sort is item date in reverse chronological order so most recent items come first, but this can be overriden if necessary.

Server Requirements:

  • Windows 2000 server or higher
  • Microsoft.NET Framework v1.1
  • DB/WebPublisher PRO 7 (or better) or CS/WebPublisher PRO 1.3 (or better)