I'm fairly new to Umbraco and I'm trying to get an RSS Feed working have tried for hours and have had no success.
I've got Warren Buckley's CWS2 package installed.
Steps so far:
Created XSLT file: (newslist2.xslt) from the RSS Feed Template (also created macro)
Added parameters for number of items, title and description to the macro
Put macro variables into XSLT file
This is where it gets blurry for me...
Ideally I want it displayed on my home page
I've tried inserting the macro into the home page template as part of the SideBarContent by referencing it by its alias. It just put the url in and then starts to display content from another page of the site.
I've tried putting it into it's own template and making it a sub template. Nothing
Am I missing something conceptually here as I can't get Warren's to work either?
I might be able to help, having just played around with this too.....
The default feed template should do the trick... I did have to make one alteration to get the browser to recognise it as a valid rss feed though, which was to remove this line: <xsl:text disable-output-escaping="yes"><?xml version="1.0" encoding="UTF-8"?></xsl:text> and instead put that line in the template for your rss feed - for example:
I think this is important becausethe XML declaration needs to come on the first line that the browser reads... and that wasn't happening for me in the orginal scenario.
then you can generate as many rss feed as you like by referencing existing content, but just specifying that your RSS template be used instead of those specified at the back end.
thanks for that, it did do the trick. I got it working only to realise it's for a newsfeed of my site. If I'd looked at the XSLT code harder I should have picked that up. I want to display articles from a newsfeed from another site - back to the drawing board. You wouldn't happen to know the best way to do this would you?
ahhh... yep so you want to aggregate a feed from another site onto yours right? You can use the runwayfeedviewer for that.
install runway on a fresh install (if you want to be safe) and take a look at the feedviewer module (developer>packages>runway modules)
Alternatively you could also check out Darren's feedcache package, which will cache any feeds that you're using onto your own server and then periodically update them... this is handy as your site will still have something to show in the event that the feed you're linking to breaks :) http://our.umbraco.org/projects/feed-cache - I *think* it's got pretty good documentation too.
RSS Feed Template not displaying
I'm fairly new to Umbraco and I'm trying to get an RSS Feed working have tried for hours and have had no success.
I've got Warren Buckley's CWS2 package installed.
Steps so far:
This is where it gets blurry for me...
Ideally I want it displayed on my home page
I've tried inserting the macro into the home page template as part of the SideBarContent by referencing it by its alias. It just put the url in and then starts to display content from another page of the site.
I've tried putting it into it's own template and making it a sub template. Nothing
Am I missing something conceptually here as I can't get Warren's to work either?
Hi Nadine,
I might be able to help, having just played around with this too.....
The default feed template should do the trick... I did have to make one alteration to get the browser to recognise it as a valid rss feed though, which was to remove this line: <xsl:text disable-output-escaping="yes"><?xml version="1.0" encoding="UTF-8"?></xsl:text>
and instead put that line in the template for your rss feed - for example:
I think this is important becausethe XML declaration needs to come on the first line that the browser reads... and that wasn't happening for me in the orginal scenario.
then you can generate as many rss feed as you like by referencing existing content, but just specifying that your RSS template be used instead of those specified at the back end.
for example:
http://www.yoursite.com/home.aspx?altTemplate=RSS_Feed
using altTemplate in the url string is a pretty neat trick I reckon.
- Tim
Hi Tim
thanks for that, it did do the trick. I got it working only to realise it's for a newsfeed of my site. If I'd looked at the XSLT code harder I should have picked that up. I want to display articles from a newsfeed from another site - back to the drawing board. You wouldn't happen to know the best way to do this would you?
-Nadine
ahhh... yep so you want to aggregate a feed from another site onto yours right?
You can use the runwayfeedviewer for that.
install runway on a fresh install (if you want to be safe) and take a look at the feedviewer module (developer>packages>runway modules)
Alternatively you could also check out Darren's feedcache package, which will cache any feeds that you're using onto your own server and then periodically update them... this is handy as your site will still have something to show in the event that the feed you're linking to breaks :)
http://our.umbraco.org/projects/feed-cache - I *think* it's got pretty good documentation too.
- Tim
is working on a reply...