RSS 2 Feed Not Formatting
Posted: 20 September 2006 04:36 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  106
Joined  07-15-2006

Just uploaded my first Expression Engine site, and am loving using EE.  I have hit one snag, though - RSS 2 feed is not showing paragraph breaks.  Atom feed works like a dream, but the RSS 2 feed displays as a block of text.  I have done a work around by taking the{body} out of the <description> part, as my sumary is only ever a single paragraph.  However, it would be great to be able to display a full feed.

Atom feed:feed://liveabiglife.com/biglife/index.php/feeds/atom_site/
RSS 2 feed: feed://liveabiglife.com/biglife/index.php/feeds/site_rss/

Here is the template content from one of my RSS 2 feeds (you will see I have removed the {body} part to get it to wrk in the short term.

{assign_variable:master_weblog_name=“journal|leadership|entertainment|technology|world|emergingchurch”}
{exp:rss:feed weblog=“journal|leadership|entertainment|technology|world|emergingchurch”}

<?xml version=“1.0” encoding=”{encoding}”?>
<rss version=“2.0”
  xmlns:dc=“http://purl.org/dc/elements/1.1/”
  xmlns:sy=“http://purl.org/rss/1.0/modules/syndication/”
  xmlns:admin=“http://webns.net/mvcb/”
  xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#”
  xmlns:content=“http://purl.org/rss/1.0/modules/content/”>

  <channel>
 
  <title>{exp:xml_encode}{weblog_name}{/exp:xml_encode}</title>
  <link>{weblog_url}</link>
  <description>{weblog_description}</description>
  <dc:language>{weblog_language}</dc:language>
  <dc:creator>{email}</dc:creator>
  <dc:rights>Copyright {gmt_date format=”%Y”}</dc:rights>
  <dc:date>{gmt_date format=”%Y-%m- T;%H:%i:%s%Q”}</dc:date>
  <admin:generatorAgent rdf:resource=“http://www.pmachine.com/” />
 
{exp:weblog:entries weblog=”{master_weblog_name}” limit=“10” rdf=“off” dynamic_start=“on” disable=“member_data|trackbacks”}
  <item>
    <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
    <link>{exp:xml_encode}{title_permalink=LabL/index}{/exp:xml_encode}</link>
    <guid>{title_permalink=site/index}#When:{gmt_entry_date format=”%H:%i:&#xsZ;”}</guid>
    <description>{exp:xml_encode}{summary}{/exp:xml_encode}</description>
    <dc:subject>{exp:xml_encode}{categories backspace=“1”}{category_name}, {/categories}{/exp:xml_encode}</dc:subject>
    <dc:date>{gmt_entry_date format=”%Y-%m- T;%H:%i:%s%Q”}</dc:date>
  </item>
{/exp:weblog:entries}
 
  </channel>
</rss>

{/exp:rss:feed}

Any help would be hugely appreciated.

Thanks!

 Signature 

Don’t settle for existence

Profile
 
 
Posted: 20 September 2006 04:50 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  5893
Joined  11-23-2003

Thanks for starting a new thread for this.  I will check out the problem and get back to you.

 Signature 

EE 2.0:  A designers dream becomes a developers dream | Follow me on Twitter.

Profile
 
 
Posted: 21 September 2006 07:45 PM   [ Ignore ]   [ # 2 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  5893
Joined  11-23-2003

Ok, I checked this out and I am thinking the people that posted in the other thread had the solution. 

Quoting from that thread…

I basically just changed the “<description>....</description>” tag from {exp:xml_encode}{summary}{body}{/exp:xml_encode} to <content type="html"><![CDATA[{summary}{body}]]></content>. I got it from the atom template… Hope this helps!

You can go back to that thread to see the full templates they posted.  You could probably just copy that template, paste it into your own and change the settings.  I was able to get this to work on Bloglines but not my preferred ready Rojo.  Did you try this?  If this does not work for you then let me know which reader you are using.

 Signature 

EE 2.0:  A designers dream becomes a developers dream | Follow me on Twitter.

Profile
 
 
Posted: 01 March 2007 05:01 PM   [ Ignore ]   [ # 3 ]  
Summer Student
Avatar
Total Posts:  13
Joined  02-26-2006

ok, well this is a circular reference.  :(  Andy said he tried it and it didn’t work but looks like you suggested he try it again.  Anyway, I’m having the same problem, tried this CDATA change and it didn’t solve the problem.  Anyone have another suggestion?

my feed: http://chaosfootbag.com/index.php/log/rss_2.0

thx in advance
Eric

Profile
 
 
Posted: 02 March 2007 11:05 AM   [ Ignore ]   [ # 4 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  5893
Joined  11-23-2003

I have since created a more informative KB article does that help?  If not, get back to me.

 Signature 

EE 2.0:  A designers dream becomes a developers dream | Follow me on Twitter.

Profile
 
 
Posted: 02 March 2007 11:14 AM   [ Ignore ]   [ # 5 ]  
Summer Student
Avatar
Total Posts:  13
Joined  02-26-2006

Hi, appreciate your help.  As stated, I have tried this without success - yet.  The aggregators I’ve tested it with are google reader, feedblitz, and feedburner.  Can you provide some examples of feed readers where this technique worked for you?

thx
Eric

Profile
 
 
Posted: 02 March 2007 11:19 AM   [ Ignore ]   [ # 6 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  5893
Joined  11-23-2003

Interesting, paragraph breaks are working for me, or is there a different problem?  Also, you have some stray {/exp:xml_encode} tags that need to be removed.

 Signature 

EE 2.0:  A designers dream becomes a developers dream | Follow me on Twitter.

Profile
 
 
Posted: 02 March 2007 11:20 AM   [ Ignore ]   [ # 7 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  5893
Joined  11-23-2003

Whoops, I am using Google Reader.

 Signature 

EE 2.0:  A designers dream becomes a developers dream | Follow me on Twitter.

Profile
 
 
Posted: 03 March 2007 07:04 PM   [ Ignore ]   [ # 8 ]  
Summer Student
Avatar
Total Posts:  13
Joined  02-26-2006

Well, this is frustrating.  It’s finally looking better in feedburner but not in google reader yet.

Perhaps I need to study rss a bit more.  I don’t understand why google reader only displays the title of my entries when I subscribe to the rss feed directly from my site…

http://chaosfootbag.com/index.php/log/rss_2.0

However, when I subscribe to the feed I ‘burned’ at feedburner it’ll show the content of the enties also - although without paragraph breaks as they are displayed at the feedburner site?????

http://feeds.feedburner.com/chaosfootbag

Nother words - still not resolved.  Any chance you could scan my rss feed for obvious errors.

thx
Eric

Profile
 
 
Posted: 03 March 2007 07:10 PM   [ Ignore ]   [ # 9 ]  
Summer Student
Avatar
Total Posts:  13
Joined  02-26-2006

ah! scratch that last post.  guess it took longer than expected for google reader to refresh but all is looking good now - in google reader and feedburner.  Woohoo!

Thx much for your patience and attention.  The <description><![CDATA[{log_summary}{log_body}]]></description> was the fix for me too.  My guess is that the hanging {exp:xml_encode} you noticed was causing problems initially when I tried that.

Eric

Profile
 
 
Posted: 08 March 2007 06:04 AM   [ Ignore ]   [ # 10 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  106
Joined  07-15-2006

Fantastic!  Thanks.

 Signature 

Don’t settle for existence

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66473 Total Logged-in Users: 50
Total Topics: 84875 Total Anonymous Users: 19
Total Replies: 455397 Total Guests: 232
Total Posts: 540272    
Members ( View Memberlist )