ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Linebreaks/XHTML in RSS Feed

August 01, 2010 8:58pm

Subscribe [5]
  • #1 / Aug 01, 2010 8:58pm

    Geoff Towle

    330 posts

    Derek Jones’s RSS feeds look nice an pretty.  Mine don’t.  I tried adding CDATA per this thread, to no avail.  Any other tips?

    I’m viewing the feed using Google Homepage, in case that matters.

  • #2 / Aug 02, 2010 1:58am

    John Henry Donovan

    12339 posts

    Geoff,

    Have you got a link to your feed. What in particular do you feel isn’t looking right for you? Use screenshots where appropriate.

  • #3 / Aug 11, 2010 1:26pm

    Geoff Towle

    330 posts

    Thanks for your reply, John.  The feed is http://www.innovate-educate.org/blog/rss-feed.  I can’t seem to get the line breaks to carry through to the reader.  I would prefer that the entry doesn’t appear in one large paragraph.

  • #4 / Aug 11, 2010 11:50pm

    Sue Crocker

    26054 posts

    Geoff, there is a setting you can change for your RSS feed to allow line breaks to work like they should.

    http://expressionengine.com/wiki/How_can_I_use_HTML_to_format_my_RSS_feed/

    Does that help?

  • #5 / Aug 12, 2010 11:26am

    Geoff Towle

    330 posts

    Thanks for the tip, Sue, but the text still comes through in one paragraph (in Google Homepage and Google Reader, at least).  The title doesn’t come through either, but it did once.  With that, I’m not going to worry about it any longer.  😉

  • #6 / Aug 12, 2010 11:33am

    Geoff Towle

    330 posts

    On that note, the Atom feed works beautifully. I’m posting my RSS code here just in case you might see something that I’m doing wrong.  This site is running 1.6.9.  Thanks.

    {assign_variable:master_weblog_name="blog"}
    {exp:rss:feed weblog="{master_weblog_name}" show_expired="yes"}
    
    <?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><![CDATA[{site_name}]]></title>
        <link>{site_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-%dT%H:%i:%s%Q"}</dc:date>
        <admin:generatorAgent rdf:resource="http://expressionengine.com/" >
        
    {exp:weblog:entries weblog="{master_weblog_name}" limit="10" rdf="off" disable="member_data|trackbacks" show_expired="yes"}
        <item>
          <title><![CDATA[{title}]]></title>
          <link>{title_permalink=blog/article}</link>
          <guid>{title_permalink=blog/article}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
          <description><![CDATA[{blog-copy}]]></description>
          <dc:subject><![CDATA[{categories backspace="1"}{category_name}, {/categories}]]></dc:subject>
          <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        </item>
    {/exp:weblog:entries}
        
        </channel>
    </rss>
    
    {/exp:rss:feed}
  • #7 / Aug 12, 2010 8:27pm

    Brandon Jones

    5500 posts

    Geoff, looks like you’re making progress with this? The feed you linked to above is showing up normally in Firefox and Google Reader for me.

  • #8 / Aug 13, 2010 7:41pm

    Geoff Towle

    330 posts

    Yes, I guess it was a cache issue.  Thanks for the help. 

    Question answered.

  • #9 / Aug 14, 2010 4:24pm

    Greg Salt

    3988 posts

    Hi Geoff,

    Good stuff. Please post back if you have further questions or problems.

    Cheers

    Greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases