如何在原子供稿中显示项目照片? [英] How to display item photo in atom feed?

查看:67
本文介绍了如何在原子供稿中显示项目照片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为原子供稿中的每个项目显示一张照片.我在输入时使用了这种结构

I want to display a photo for each item in atom feed. I used this structure for my entry

<entry>
    <title>TITLE</title>
    <link href="http://page" />
    <id>http://page</id>
    <updated>DATE</updated>
    <summary>DESCRIPTION</summary>
    <content type="image/jpg" 
    src="http://image" />
</entry>

,但是在Google阅读器中添加供稿时,它将不显示图像.最好的方法是什么?

but when adding the feed in Google Reader, it will not display images. What is the best way to do so?

推荐答案

对于Atom或RSS,您需要启用与文件的热链接,以供Google阅读器读取文件,如以下所述:

For Atom or RSS you need to enable hotlinking to your files for Google Reader to read them, as decribed at:

"如何:允许Google阅读器访问受热链接保护的图像"
由JP Habaradas于2009年4月27日

"HowTo: Allow Google Reader Access To Hotlink-Protected Images"
By JP Habaradas on April 27, 2009

此外,您可能需要将此问题链接到 https://webmasters.stackexchange.com/,因为您需要这样做.htaccess修改,并启用和配置Apache Rewrites.

Also, you may want to link this question to https://webmasters.stackexchange.com/ as you will need to make .htaccess modification and have Apache Rewrites enabled and configured.

这篇关于如何在原子供稿中显示项目照片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆