Jump to content

Custom RSS Feeds?


freshJet

Recommended Posts

I want to make an RSS Feed for latest news. This is my code:

lib/rss/latestnews.rss

<?xml version="1.0" encoding="utf-8"?><rss version="2.0">
<channel>
<title>Latest News</title>
<link>http://www.freshjetvirtual.com</link>
<description>All the latest news from freshJet</description>
<lastBuildDate>Thu, 10 Nov 2011 06:36:50 CST</lastBuildDate>
<language>en-us</language>
<item>
<title><?php echo PopUpNews::GetFieldValue($popupnews->subject);?></title>
<description><?php echo PopUpNews::GetFieldValue($popupnews->body);?></description>
<link>http://www.freshjetvirtual.com/index.php/PopUpNews/popupnewsitem/?itemid=<?php echo PopUpNews::GetFieldValue($popupnews->id);?></link>
<pubDate><?php echo PopUpNews::GetFieldValue($popupnews->postdate);?></pubDate>
<description></description>
</item>
</channel>
</rss>

It won't work. I've got a channel but no content. Does the PHP not work because it's external?

Link to comment
Share on other sites

I want to make an RSS Feed for latest news. This is my code:

lib/rss/latestnews.rss

<?xml version="1.0" encoding="utf-8"?><rss version="2.0">
<channel>
<title>Latest News</title>
<link>http://www.freshjetvirtual.com</link>
<description>All the latest news from freshJet</description>
<lastBuildDate>Thu, 10 Nov 2011 06:36:50 CST</lastBuildDate>
<language>en-us</language>
<item>
<title><?php echo PopUpNews::GetFieldValue($popupnews->subject);?></title>
<description><?php echo PopUpNews::GetFieldValue($popupnews->body);?></description>
<link>http://www.freshjetvirtual.com/index.php/PopUpNews/popupnewsitem/?itemid=<?php echo PopUpNews::GetFieldValue($popupnews->id);?></link>
<pubDate><?php echo PopUpNews::GetFieldValue($popupnews->postdate);?></pubDate>
<description></description>
</item>
</channel>
</rss>

It won't work. I've got a channel but no content. Does the PHP not work because it's external?

Your idea seems to be nice. Good Luck !

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...