I recently wrote a simple script to provide a RSS feed for a CMSimple powered website.

The script will be placed in a new rss-folder placed in the root directory. It takes the content.htm and substracts the page you choose from its < h1 > section. Actually, I decided to take the first < h1 > section with the most recent news. The script creates the RSS news from the < h4 > subsections of this “chapter” on the fly on the new adress yourpage.com/rss/index_rss.php.

All you have to do is to download this zip file, place its content into your CMSimple root directory and modify the RSS variables at the beginning of the index_rss.php file according to your needs.

To tell the actual browsers that you offer a RSS feed on your site you’ll have to add the following line to your template file:

<link rel=”alternate” type=”application/rss+xml” title=”YOUR TITLE LIKE IN INDEX_RSS.php” href=”http: //yourpage.com/rss/index_rss.php”>

An existing example can be reviewed here.

Feedback and questions are welcome,
iRolf

tips_and_tricks/cmsimple_rss.txt · Last modified: 2008/03/06 07:58 by 84.170.153.135