Web design

Programming , development, free evaluation

pricelist portfolio free-quote

Graphic Design

logos, bilbords, flyers, business cards...

pricelist portfolio free-quote

Hosting

Domain, SSL certificates, 24/7 tech support

pricelist portfolio order

RSS Manual

A "Handmade" RSS. 2.0 feed

All of the tools that you need is only the text editor (notepad or Vim - if you are a Linux user).

Minimal RSS 2.0 feed example:

<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>Ime feeda</title>
<link>http://primer.com/</link>
<description>Opis feeda</description>
<item>
<title>Naslov priloga</title>
<link>http://primer.com/link-ka-prilogu</link>
<description>opis priloga ili ceo prilog</description>
</item>
</channel>
</rss>

Save the upper code rss.xml and you'll have your first, personal RSS 2.0 feed. Notice that when you're saving your settings, you need to choose UTF-8 in your text editor if you are using č, ć, š, đ, ž or ????????? ????? in <title> or in <description>!

Next step is to put this file on to web server, and the most important thing is:

"open" the document on which your feed is reffered (whether it is .html or .php) and in headeru (an area in document between tags <head> i </head> and write :

<link rel="alternate" type="application/rss+xml" title="Name of RSS feeda " href="path-to-file-rss.xml" />

This way browsers and bots will just discover your RSS 2.0 feed.
This way every single file-document of yours can have it's RSS 2.0 feed. If you want to have one file for your whole website, it would look like this:

<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>Ime feeda</title>
<link>http://primer.com/</link>
<description>Opis feeda</description>
<item>
<title>Naslov priloga</title>
<link>http://primer.com/link-ka-prilogu</link>
<description>opis priloga ili ceo prilog</description>
</item>
<item>
<title>Naslov priloga2</title>
<link>http://primer.com/link-ka-prilogu-2</link>
<description>opis priloga ili ceo prilog</description>
</item>
<item>
<title>Naslov priloga3</title>
<link>http://primer.com/link-ka-prilogu-3</link>
<description>opis priloga ili ceo prilog</description>
</item>
</channel>
</rss>