English (United States) English (United Kingdom)
Thursday, March 11, 2010
archives

categories

articles
20

If you use the Syndication for XMod add-in to generate RSS feeds of your XMod data you will need some way to allow your users to subscribe to these feeds.

Normally on websites with RSS feeds you will see the orange RSS icon action_rss , this is basically a hyperlink to the xml file which contains your feed content.

Most modern browsers (FF3,IE7,Safari) have RSS Auto-Discovery, that means that if they detect a link to a feed an RSS icon in the address bar or somewhere similar will be enabled. (see the screenshot from FF3 above).

However, the link to enable this must reside in your page’s header; you can use XMod’s functionality to achieve this.

I generally add it in the XMod module’s Header section:

image

 

   1: <scriptblock scriptid="rssfeed" blocktype="HeadScript" registeronce="true">
   2: <link href="http://www.fatgeorge.co.uk/portals/0/AskTheXperts.xml" rel="alternate" type="application/rss+xml" title="fatgeorge - Ask The Xperts" /> 
   3: <link href="http://www.fatgeorge.co.uk/portals/0/AskTheXpertsunanswered.xml" rel="alternate" type="application/rss+xml" title="fatgeorge - Ask The Xperts Un-Answered Questions" /> 
   4: </scriptblock>

 

    UPDATE

I generally work in Firefox so it was only when I was helping a customer set this up that I noticed that the RSS icon did not light up in IE7 but was fine in FF3 !

For what ever reason IE was not picking up the header script insertion from the XMod scriptblock, I wanted some way to test the IE was processing the RSS link correctly.

So I needed some other way of injecting the code into the page header, preferably for free.

I then remembered seeing Will Strohl’s post, a free script injection module.

Simply follow Will’s instructions to install and configure the module.

I added a new injection:

image

image

I simply then entered the <link> references as the content to inject,

specified to inject it at the top of the page

as it needs to appear in the page header.

Simple and free and it now works in FF and IE.

 

 

del.icio.us Tags: ,,,

Comments

There are currently no comments, be the first to post one.

Post Comment

Only registered users may post comments.

Copyright 2010 fatgeorge