Feeds to the Rescue

What

Webservices are the meat of efficient IT-supported Informationmanagement. Some 5 Objects within native WISE 1.2R2 do provide RSS 0.9 feed information if called with the suffix /rss in the URL.

That are:

  • Container
  • Calendar
  • Bulletin board
  • Notices
  • Web Directory

and

  • NC3A WISE Filesystem if installed

However, these do not give themselves away if used on a WISE-page.
Bad marketing…….

Why

For that reason one of my efforts was to implement a current List of RSS feeds into each WISE Page served, so the user could subscribe to one of them to stay on top of things on his Informationportal.

How

I started out with some crude dtml code below the footerline to catch four specific objects rss feeds (container bulletinboard, notices and calendar) and provide an appropriate link to include into the RSSLET or a third party feedreader (absolute_url/rss).

Of course the Links should only be shown if there was such an object. So I checked for the appropriate URL that should come up if the object was not renamed on instanciation.

Since there is a Tag in the HTML Header that is read by feedreaders to check for available RSS Content on the actual page

<link rel=”alternate” type=”application/rss+xml” title=”” href=”” />

I had to create something smarter.

With sound advice from Nic (thankyou) I managed to implement a loop to check for objects with an explicit rss property and create the apropriate <link> statement for the feedreader.

<dtml-in objectValues>
<dtml-if “_.hasattr(aq_explicit, ‘rss’)”>
<link rel=”alternate” type=”application/rss+xml” title=”<dtml-var title_or_id>”
href=”&dtml-absolute_url;/rss” />
</dtml-if>
</dtml-in>

What else?

Other than in the sourcecode, for the time beeing there is nothing seen on the page.

For compatability reasons I might include a dropdownlist with the feedlinks into the footer…

IE7 does not accept RSS that uses a dtd (which is the case with RSS 0.9 as used in WISE 1.2R2) We might check if the updated RSSInterface from WISE 1.3 does fit in here, providing RSS 2.0

WISE things to do……..

This entry was posted in DTML-Stuff, english, Product Hacks. Bookmark the permalink.

Leave a Reply