In both IE (8) and FF (3.5) there are an RSS button in the toolbar that "automatically" finds RSSfeeds on some sites / pages, and shows them "feed style" when clicked.
Does anybody know how this button works, and how to implement that functionality for an Umbraco based site / page. It looks like you somehow can give it a URL that lnks to a feed. But how is that acomplished ?
<!-- This gets all news and events and orders by updateDate to use for the pubDate in RSS feed --> <xsl:variable name="pubDate"> <xsl:for-each select="$currentPage/node "> <xsl:sort select="@updateDate" data-type="text" order="descending" /> <xsl:if test="position() = 1"> <xsl:value-of select="updateDate" /> </xsl:if> </xsl:for-each> </xsl:variable>
i already have my own user control to generate the XML for the feed, because the selection of nodes / pages is not as straight forward as the sample XSLT that comes with umbraco. So with your info on how to put the link in the page i should be all set.
Hooking into the RSS button in FF and IE
In both IE (8) and FF (3.5) there are an RSS button in the toolbar that "automatically" finds RSSfeeds on some sites / pages, and shows them "feed style" when clicked.
Does anybody know how this button works, and how to implement that functionality for an Umbraco based site / page. It looks like you somehow can give it a URL that lnks to a feed. But how is that acomplished ?
Thanks
Mikael
Hi Mikael,
You can do this by adding following code to the head tag of your page :
You can more "links" to different RSS feeds.
Dave
Hi There
A link in the head of the document does this, along the lines of
Then you just need a template to produce an rss feed from your xml.
Can't remember where I got this xslt (prob from the excellent CWS), but here's a xsl sheet to do something like this
Template (macro insert code) (v3 embed code, will work with small mod for v3)
You'll need to change the nodeTypeAlias's that you're searching for in the file below, but it's a good start!
Dan
Also should mention the macro params for this
RSSNoItems - number
RSSTitle - text
RSSDescription - textmultiline
SiteURL - text
Good luck!
Thanks to both of you.
i already have my own user control to generate the XML for the feed, because the selection of nodes / pages is not as straight forward as the sample XSLT that comes with umbraco. So with your info on how to put the link in the page i should be all set.
Mikael
is working on a reply...