Solved

image will not display in RSS feed

Posted on 2011-03-02
5
2,310 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

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

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 …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

630 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