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
Discussion
I downloaded this package and can’t for the life of me get it to work. I get all of the header info but no RSS entries. Is there a particular version of CMSimple that must be ussed? Any other particulars? I know that the install for the above worked because I went to the site and saw the page. It is really a nifty idea if I can get it to work. Any sugggestons would be great. I have installed a number of CMSimple versions and sites since 2.7 so I know my way around a bit. But, this one has me stumped. Thanks. William
Nice instance of doku by the way.
Almost impossible to get it working
content.htm
<h1>AKTUALITY</h1><h4>Správa</h4>
<p>Lorem ipsum dolor sit amet consectetuer neque eu Sed tincidunt laoreet. Eu id laoreet auctor gravida Nulla Quisque adipiscing et urna ac. Lacinia ipsum ipsum justo volutpat lacinia id velit vel aliquam Nulla. </p>
template.htm
<link rel=”alternate” type=”application/rss+xml” title=”AKTUALITY” href=”http: //www.spisskepodhradie.sk/rss/index.php”></head>
rss/index.php
$RSS_titel = “RSS“;$RSS_sitelink = “http://1.cmsimple.sk“;
$RSS_feedlink = “http://1.cmsimple.sk/rss/index.php“;
$RSS_description = “short decription about your feed”;
$RSS_generator = “CMSimple“;
$RSS_copyright = “me, me@mypage.com”;
$RSS_imageUrl = “http://1.cmsimple.sk/rss/feed.gif“;
$RSS_imageDescription = “short description”;
$RSS_author = “me@mypage.com (my name)”;
$RSS_h1_selection = 1;
Where is the trick? After calling the rss/index.php only a blank page comes out.