Jump to content
Sign in to follow this  
TCwho

Backend RSS

Recommended Posts

Hey everyone. Im trying to create an rss feed of our store's products. I cant get any of the contributions to work. The closest one, and the one that I started working from is this one:

 

RSS contribution that I am trying to modify

 

Now when I try to show this feed testing on a postnuke installation locally .. the file I am using is rss.php .... but nothing shows up except the title of the 'item' - but no image .. the link does work however...

 

<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="0.91">
 <channel>
   <title>Title Here</title>
   <source></source>
   <link>http://www.website.com</link>
   <language></language>

     <url>http://www.website.com/catalog/images/3572sm.gif</url>
   <item>
     <title>Fi Al Mazr'aa (Rotating Dictionary - Children)</title>
     <price>$7.00</price>>
     <link>http://www.website.com/catalog/product_info.php?products_id=179</link>
     <url>http://www.website.com/catalog/images/3572sm.gif</url>
   </item>
 </channel>
</rss>

------------

 

Is it because the file ends in .php or is it using wrong tags??? :(

 

Thank You

Share this post


Link to post
Share on other sites
Hey everyone.  Im trying to create an rss feed of our store's products.  I cant get any of the contributions to work.  The closest one, and the one that I started working from is this one:

 

RSS contribution that I am trying to modify

 

Now when I try to show this feed testing on a postnuke installation locally .. the file I am using is rss.php  .... but nothing shows up except the title of the 'item' - but no image .. the link does work however...

 

<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="0.91">
 <channel>
   <title>Title Here</title>
   <source></source>
   <link>http://www.website.com</link>
   <language></language>

     <url>http://www.website.com/catalog/images/3572sm.gif</url>
   <item>
     <title>Fi Al Mazr'aa (Rotating Dictionary - Children)</title>
     <price>$7.00</price>>
     <link>http://www.website.com/catalog/product_info.php?products_id=179</link>
     <url>http://www.website.com/catalog/images/3572sm.gif</url>
   </item>
 </channel>
</rss>

------------

 

Is it because the file ends in .php or is it using wrong tags???  :(

 

Thank You

 

 

Well these are required elements from the 0.91 rss specification, (http://backend.userland.com/rss091)

 

Required <channel> sub-elements

 

Following are the required elements of a <channel>.

 

<title> -- The name of the channel. It's how people refer to your service. If you have an HTML website that contains the same information as your RSS file, the title of your channel should be the same as the title of your website. Maximum length is 100 characters.

 

<link> -- A URL pointing to the website named in the <title>. Maximum length is 500 characters.

 

<description> -- A phrase that describes your channel, your channel's positioning statement. Maximum length is 500 characters.

 

<language> -- Indicates the language your channel is written in. This allows aggregators to group all Italian language sites, for example, on a single page. A list of allowable values for this element is here.

 

<image> -- An XML element that contains several sub-elements, explained here.

 

So you are missing <description> and not sure if <language> can be empty, have a look at that web page for more info


"All animals are equal, but some animals are more equal than others" - George Orwell

Share this post


Link to post
Share on other sites

Thank You. I eventually figured it out and got it working. However this page you listed could have really saved me alot :lol: of trial and error. After looking at JavaRoasters feed and others feed I saw how they were flowing...

 

Only problem, Its very specific to how I wanted it to show and for the purpose of what I needed. If I release it as contribution, I dont know how many or if any would benefit....

 

I did write something that logs and registers the ip address and shows it when you are looking at the customers table in the admin section... maybe some would like that...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×