RSS FEED INTERFACE ------------------ RSS is very cool! To see it in action look no further than Firebird 1.0. Then go to an RSS-enabled site, e.g . Note the little orange icon down in the right corner of the browser window. Click on the icon and add the RSS-feed to you personal toolbar. Then click on your toolbar, on the RSS-bookmark and watch the nice menu of slashdot article-summarys popping up. The module yaws_rss.erl provides an RSS store/interface so that you can RSS enable your application. More documentation can be found in the yaws_rss.erl file (edoc). TO CREATE AN RSS FEED -------------------- Make sure your top page has the corresponding link information in the 'head' part as shown in the example below: index.html ========== {content, "text/xml", ""} end. head() -> " Exampel RSS feed Bla bla.... en". tail() -> " ". ======== To insert RSS items into the feed from your application, you can write code like: .... yaws_rss:insert(test, xml, "Yaws now support RSS feeds.", "", "Yaws has now been extended to support....", "Bill Smith"). .... First comes the application (RSSid) then a tag (these were used in rss.yaws when we retrieved the RSS content). Then follows the Title, Link, Description and Creator. The idea is that several independent application should be able to use the yaws_rss.erl API without affecting each other. Also, one application may have several RSS feeds (hence the Tag). HOW TO CONFIGURE RSS -------------------- Inside a block you specify the application you want to produce RSS content as: rss_id = rss_dir = The rss_id corresponds to the 'App' argument above and must be defined by the application in question. So, for example, the wiki application is using 'wiki' as rss_id. The rss_dir setting specifies the directory where the RSS database resides. Both are mandatory. Other, non-mandatory, configuration parameters are (with explanation and default values): rss_expire = false | days # expire items, or not (false) rss_days = # days until expired rss_rm_exp = # remove expired items (false) rss_max = # max no.of items stored (infinite) Good luck ! Tobbe