Reto Sigl Homepage gets RSS Feed
October 3rd 2005
Adding an RSS Feed to your Homepage
is easier than you think! There are only
two steps involved to prepare: create the RSS file itself,
and
add a line of code to the page(s)
you want the RSS indicator
to become visible.
The following rss or xml file must be created somewhere
on your homepage. Usually you would put it into the
same directory as you have your events or news:
1. Create the RSS file
events.rss
| <?xml version="1.0"?> <rss version="2.0"> <channel> <title>Reto Sigl Homepage</title> <link>http://www.sigl.ch</link> <description>Reto Sigl Homepage - Events</description> <item> <title>Homepage gets RSS Feed</title> <link>http://www.sigl.ch/events/usa/2005/rssfeed</link> <description>October 3rd 2005</description> </item> <item> <title>Six Flags and Candlewood Lake</title> <link>http://www.sigl.ch/events/usa/2005/stieberbuchs</link> <description>September 24 - 30th 2005</description> </item> </channel> </rss> |
Of course in the <channel> area you would
put information of your Homepage, and in the
<item> areas you would start populating your events or news.
Simply add an event, as soon as you pointed the pics.
You can have the extension of the file be .rss or .xml,
there is no difference between the two.
2. Let the indicator become visible
The following line must be added to the page(s)
you want the RSS indicator to become visible:
<link rel="alternate" type="application/rss+xml" title="Reto Sigl Homepage" href="http://www.sigl.ch/events/events.rss" />
It is as simple as this. Of course also here, you would
replace the title and href with the name of your Homepage
and the location where you placed the rss or xml file.
Step 2 is a one-time thing only, you will most likely never bother about
this again. Step 1 you will do continuously, as soon as you add something
new to your events or news. Yes, I agree it is a little bit more of effort
on your side to maintain. But hey, you will be rewarded by your friends
or customers being automatically notified when something changes on
your Homepage. In the past, they only stepped by when they were curious
to see if something changed!