![]() |
|
|
#1 | ||
|
Junior Member
|
Just was wondering if anyone had a quick 'how to' on adding an RSS feed to a website.
I understand that styling ti can do done via css, but actually generating the code is something that has got be stumped. I have trawled the web and found various services (including Google Reader) that will create a feed for you, but do they let you customise it? Any help would be great :) Many thanks, Mark |
||
|
|
|
|
|
#2 | ||
|
Senior Member
|
Have you come across this site: Dynamic Drive DHTML(dynamic html) & JavaScript code library
If you do a search on there for RSS Feed it will come up with a few scripts to do it (and style them with CSS like you said). I can't give you a How To as its been a while since I did it but from what I remember it's pretty straightforward. Grab a coffee (or four) and try some of them out and I'm sure you'll find what you want. |
||
|
|
|
|
|
#3 | ||
|
Member
Join Date: Apr 2010
Location: Norfolk
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
|
I built a custom RSS feed a few weeks back for the first time.
It is straight forward to do assuming that you have some PHP knowledge. There are a couple of approaches - I opted for a method whereby my CMS creates an actual xml file when ever a new file is saved, or an existing one is edited. Alternatively, you can use php to create it on demand (see link below). The method that you choose is up to really depending on what the feed comes from & how you want it to work. Have a look at this tutorial to get an idea of how easy it actually is: create an rss feed with php/ If you wanted to save it as an xml as I did, you just need to save the xml data into a text file rather than echoing it out. |
||
|
|
|
|
|
#5 | ||
|
Member
Join Date: Apr 2010
Location: Norfolk
Posts: 30
Thanks: 0
Thanked 2 Times in 2 Posts
|
if you want it as simple as it can get....you can do it manually - create an xml file & add new articles as you create them....this would get tedious very quickly though.
You don't state what you want the RSS feed to run from...I presume that you have some form of CMS that is having new content added? - without knowing more I don't think anyone can be of much help. |
||
|
|
|
|
|
#6 | ||
|
Senior Member
Join Date: Mar 2010
Location: Swindon
Posts: 137
Thanks: 9
Thanked 15 Times in 14 Posts
|
Thanks for the link to the Tutorial CraftyGeek, I am a designer slowly learning development and need to create an xml feed for a news system that I am working on.
Thanks again :) |
||
|
|
|
|
|
#7 | ||
|
Junior Member
Join Date: Nov 2009
Location: Staffordshire, Stoke-on-Trent
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
If you're creating a feed for say a news area remeber to include the link rel alternative in your header tag,as some browsers show a feed icon in the address bar when this is present:
HTML Code:
<link rel="alternate" type="application/atom+xml" href="http://www.yoursite.co.uk/rss/news" title="feed/http://www.yoursite.co.uk/rss/news" >
|
||
|
|
|
|
|
#8 | ||
|
Senior Member
Join Date: Mar 2010
Location: Swindon
Posts: 137
Thanks: 9
Thanked 15 Times in 14 Posts
|
Cool, thanks for the quick tip Amy :)
|
||
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|