I've found a simple solution to develop an RSS feed application in Louts Notes/Domino. The application will push RSS threads to subscribers. The design elements that are included in the application are as follows:
In your Lotus Notes view, the following tags make up the structure of each item/row in the RSS feed:
- Item tag
- Link tag
- Publish date
The idea behind this is to have each document that's created in the Notes view render its values as XML tags to generate RSS feed items. You'll need to make sure that the view property Treat view contents as HTML is enabled.
This view will be embedded in the page, which will contain the necessary XML tags for an RSS feed document. Make sure that the Content Type view property is selected as HTML and that Render pass through HTML is also enabled.
This application works in Lotus Notes 8 and higher, as well as Internet Explorer 6. The URL to subscribe to this RSS feed would be the URL of the page. For example:
http<://<server name><>/<database file path><>/<page name>>?openPage.
Here are the Lotus Notes view formulas for the item tags:
- In the first column:
<item> "Item tag starts"
- In the second column:
"<title>"+ <<field name for title> + "</title>"
- In the third column:
"<link>"+<field name for link > +"</link>"
- In the fourth column:
"<description>"+>"+<field name for description> +"</description>"
- In the fifth column:
"<pubDate>"[email protected](<field name for Publish Date>)+"</pubDate>"
- In the sixth column:
"<author>"+<field name for Author >+"</author>""
- In the seventh column:
</item> "Item tag ends"
The following XML code will appear before the embedded view on the page:
<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> <channel> <title>Test Portal RSS Feed</title> <link> http://xyz.com</link> <language>en-us</language> <ttl>40</ttl> <pubDate>Wed, 29 Apr 2009 07:57:33 GMT</pubDate> <description>Recent Activity Log for The Test Portal</description>
Finally, insert the following code after the embedded view:
Do you have comments on this tip? Let us know.
This tip was submitted to the SearchDomino.com tip library by member Ali Ahmad. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes/Domino technical tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.