Solved

image will not display in RSS feed

Posted on 2011-03-02
5
2,234 Views
Last Modified: 2013-11-18
Hi,

Someone else setup an RSS feed for the company however it does not work correctly as the images will not display in browser or aggregator. I tried to fix using the <image> tag however still doesnt work.

Can someone take a look at the code?

thanks
<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0" xmlns:c="http://base.google.com/cns/1.0" xmlns:i="http://purl.org/rss/1.0/modules/image">
<channel>
<title>Womens Caps</title>
<description>Womens Caps</description>
<link>https://url</link>
<item>
<g:id>1289</g:id>
<title>women's cap</title>
<description>text</description>
<g:image_link>url</g:image_link>
<i:image>
<i:url>url</i:url>
<i:title>women's cap</i:title>
<i:link>url</i:link>
</i:image>
<c:was_price type="string"/>
<g:price>10.00</g:price>
<link>url</link>
</item>
</channel>
</rss>

Open in new window

0
Comment
Question by:jecommera
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 250 total points
ID: 35023075
From what I read, the <image /> tag should have three child elements and can only occur under the <channel /> tag:

    http://www.w3schools.com/rss/rss_tag_image.asp
0
 

Author Comment

by:jecommera
ID: 35023206
so - it does?

<i:image>
<i:url>url</i:url>
<i:title>women's cap</i:title>
<i:link>url</i:link>
</i:image>
0
 

Author Comment

by:jecommera
ID: 35026227
Anyone got any ideas? :)
0
 
LVL 3

Assisted Solution

by:wwwdeveloper2
wwwdeveloper2 earned 250 total points
ID: 35051340
Looks like to me that you are not actually outputting the url to the image location on the server.  It just literally says url

<g:image_link>url</g:image_link>
<i:image>
<i:url>url</i:url>

Shouldn't it have something like

<g:image_link>http://www.yoursite.com/</g:image_link>
<i:image>
<i:url>http://www.yoursite.com/productimage.jpg</i:url>

Is there maybe something wrong with your query that is outputting the feed? - Maybe it can't grab the real data for the image url?

Just some thoughts.  If you have more questions, let me know.

Good luck
0
 

Author Comment

by:jecommera
ID: 35054928
thanks,

@kaufmed: I know what you mean now, you are saying that you cannot place an image in the <item> tag

@wwwdeveloper2: 'url' is just a placeholder for the actual url.

So it appears that you cannot place an image in there. I have found a workaround seeing that you can place html inside the <description> tag therefore you can place an image in there however this is not ideal as one of our affiliates is using this feed and therefore cannot adjust the element contents.

There must be another way around this seeing that you have all those great RSS feeds on other sites.
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question