One of my friends told me that he was using Google Desktop Search to subscribe my RSS feed. The problem is: He could't see the contents of my blog from Google Desktop Search's toolbar(sidebar on your Windows's desktop), only titles were shown in the toolbar.
So later I checked the template file: templates/default/feed_2.0.tpl,
replaced the tag <content:encoded></content:encoded> with <description></description>. Now everything works fine for (all the) RSS readers reading my blog's RSS feed.
I was using s9y v1.0 beta 3 and now I am using s9y v1.0. Same problem happens.
[bug] RSS 2.0 template
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: [bug] RSS 2.0 template
Hi!
This is not a bug of the RSS feed; "content:encoded" is properly valid according to RSS specs.
The problem is that s9y wants to show HTML content. However, the "<description>" field is by definition NOT allowed to hold HTML code.
So by using <description> we would either need to strip all HTML layout (which would suck) or we would be incompatible with the spec (which would suck). Thus we are using content:encoded, which allows it.
So it'S actually a bug the Google Desktop Search should try to fix, because some other blog softwares are also using content:encoded...
Best regards,
Garvin
This is not a bug of the RSS feed; "content:encoded" is properly valid according to RSS specs.
The problem is that s9y wants to show HTML content. However, the "<description>" field is by definition NOT allowed to hold HTML code.
So by using <description> we would either need to strip all HTML layout (which would suck) or we would be incompatible with the spec (which would suck). Thus we are using content:encoded, which allows it.
So it'S actually a bug the Google Desktop Search should try to fix, because some other blog softwares are also using content:encoded...
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Yes, you could fix that for your readers, but as I mentioned it will have an impact on people with proper readers.
I am really sorry for that, but I hope you can understand the problem we're having there.
Maybe your google readers could just subscribe to your atom feed? Or you could relay your feed through feedburner?
Best regards,
Garvin
Yes, you could fix that for your readers, but as I mentioned it will have an impact on people with proper readers.
I am really sorry for that, but I hope you can understand the problem we're having there.
Maybe your google readers could just subscribe to your atom feed? Or you could relay your feed through feedburner?
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: [bug] RSS 2.0 template
Hi Garvin,garvinhicking wrote:This is not a bug of the RSS feed; "content:encoded" is properly valid according to RSS specs.
The problem is that s9y wants to show HTML content. However, the "<description>" field is by definition NOT allowed to hold HTML code.
So by using <description> we would either need to strip all HTML layout (which would suck) or we would be incompatible with the spec (which would suck). Thus we are using content:encoded, which allows it.
Done some digging and found this link http://www.rssboard.org/rss-specificati ... elElements which shows <description> as a required element.
If you see other feeds such as http://rss.news.yahoo.com/rss/digitalimaging you will also see html in the <description> element.
Could an install/config option be made available that allows a user to choose whether to use <description> or <content:encoded>?
Thanks.
Gerry
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: [bug] RSS 2.0 template
Hi!
[quteo]Done some digging and found this link http://www.rssboard.org/rss-specificati ... elElements which shows <description> as a required element.[/quote]
Yes, in the CHANNEL element it is required, but not inside the ITEM element.
Best regards,
Garvin
[quteo]Done some digging and found this link http://www.rssboard.org/rss-specificati ... elElements which shows <description> as a required element.[/quote]
Yes, in the CHANNEL element it is required, but not inside the ITEM element.
Yes, but putting HTML into there is not valid to first RSS 2.0 specs - and thus, some RSS readers would not properly interpret that.If you see other feeds such as http://rss.news.yahoo.com/rss/digitalimaging you will also see html in the <description> element.
You could edit your feed*.tpl files to change that; adding a config option for this option is IMHO not required. Because, again, content:encoded does not impose any problem. It has worked perfectly sine the last 3 years in every RSS reader known to use.Could an install/config option be made available that allows a user to choose whether to use <description> or <content:encoded>?
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: [bug] RSS 2.0 template
Thanks for pointing out the channel vs. item difference. I guess I am using a simplistic class to read the feed. (I am syndicating a feed from my son's blog on my site).garvinhicking wrote:You could edit your feed*.tpl files to change that; adding a config option for this option is IMHO not required. Because, again, content:encoded does not impose any problem. It has worked perfectly sine the last 3 years in every RSS reader known to use.
Do you know where I could find a class that will read the 2.0 feed properly, including the content:encoded?
Thanks
Gerry
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: [bug] RSS 2.0 template
Hi!
AFAIK both MagpieRSS and Onyx support this! You might want to look at the serendipity sidebar plugin "Remote Feeds", which are able to parse foreign feeds...
HTH,
Garvin
AFAIK both MagpieRSS and Onyx support this! You might want to look at the serendipity sidebar plugin "Remote Feeds", which are able to parse foreign feeds...
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: [bug] RSS 2.0 template
Thank you, Garvin.garvinhicking wrote:AFAIK both MagpieRSS and Onyx support this! You might want to look at the serendipity sidebar plugin "Remote Feeds", which are able to parse foreign feeds...
Gerry