Hi, All.
I have two CMS Builder issues I'd like to sort out.
======
1. RSS feed: I've got this to work on
http://www.yallaf1.com, and the feeds are appearing when I add them to Google and Yahoo. However, I'm getting the following error message, which appears under the headline link:
"Notice: Undefined index: summary in /home/yallaf5/public_html/rss.xml.php on line 22"
This is the code that I'm using in the file called rss.xml.php:
<?php header('Content-type: application/xml; charset=utf-8'); ?><?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<?php
require_once "/home/yallaf5/public_html/cmsAdmin/lib/viewer_functions.php";
list($top_storiesRecords, $top_storiesMetaData) = getRecords(array(
'tableName' => 'top_stories',
));
?>
<rss version="2.0">
<channel>
<title>YallaF1 - Daily Formula 1 News</title>
<link>http://www.yallaf1.com</link>
<description>YallaF1.com Daily Formula 1 News</description>
<pubDate><?php echo date('r'); ?></pubDate>
<language>en-us</language>
<?php foreach ($top_storiesRecords as $record): ?>
<item>
<title><?php echo htmlspecialchars($record['title']) ?></title>
<link>http://www.yallaf1.com<?php echo $record['_link'] ?></link>
<description><?php echo htmlspecialchars($record['summary']); ?></description>
<pubDate><?php echo date("r", strtotime($record['date'])) ?></pubDate>
<guid isPermaLink="true">http://www.yallaf1.com<?php echo $record['_link'] ?></guid>
</item>
<?php endforeach ?>
</channel>
</rss>
Can anyone tell me where I'm going wrong, please?
======
2. On the homepage -
http://www.yallaf1.com - is a column of headlines under the title "Daily News". These headlines all come from a single section of the site that is controlled with CMSB. Is there a way of collating headlines from more than one section so that they are all chronological? Therefore, just as an example, there might be two "Top Stories" headlines next to each other because they've been added most recently, followed by a headline from "Daily News", two from "Blog", etc.
Thanks!
Nigel Gordijk
Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net