General info on Setting up a RSS fee on a news page

2 posts by 2 authors in: Forums > CMS Builder
Last Post: June 30, 2010   (RSS)

Re: [cfdesign] General info on Setting up a RSS fee on a news page

By Jason - June 30, 2010

Hi,

An RSS feed is just an XML Document. There's actually a good overview tutorial found here:

http://searchenginewatch.com/2175271

You can create a .php file (feed.xml.php for example) that you can use to create the XML document, using CMS Builder to insert values from the database

For example, producing the items in your feed might look like this:


<?php foreach($articleRecords as $article): ?>

<item>
<title><?php echo $article['title'];?></title>
<description><?php echo $article['description'];?></description>
<link>http://www.mydomain.com/articleDetails.php?<?php echo $articles['num'];?></link>
</item>

<?php endforeach ?>


Hope this helps get you started.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/