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.

RSS Feed Displays, But Doesn't Render Published Data

April 01, 2008 4:25pm

Subscribe [1]
  • #1 / Apr 01, 2008 4:25pm

    wurdz

    14 posts

    I’m stumped.  😖 The RSS feed displays and everything shows except the body and summary information from the post. Yes, there is data in the test post.

    In the rss feed, it shows the following instead of the real text:

    {summary}{body}{extended}

    Thanks for any help you can provide. Here’s my RSS template….

    {assign_variable:master_weblog_name="Podcast"}
    {exp:rss:feed weblog="{master_weblog_name}"}
    
    <?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-%dT%H:%i:%s%Q"}</dc:date>
        <admin:generatorAgent rdf:resource="http://expressionengine.com/" >
        
    {exp:weblog:entries weblog="Podcast" limit="20" rdf="off" dynamic_start="on" }
        <item>
          <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
          <link>{exp:xml_encode}{comment_url_title_auto_path}{/exp:xml_encode}</link>
          <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>
          <content:encoded><![CDATA[{summary}{body}{extended}]]></content:encoded>
          <guid isPermaLink="true">{exp:xml_encode}{comment_url_title_auto_path}{/exp:xml_encode}</guid>
          <dc:date>{gmt_edit_date format='%Y-%m-%dT%H:%i:%s%Q'}</dc:date>
          {exp:feed_enclosures type="rss" remote="n"}{audioplayer}{/exp:feed_enclosures}
        </item>
    {/exp:weblog:entries}
        
        </channel>
    </rss>
    
    {/exp:rss:feed}
  • #2 / Apr 01, 2008 4:32pm

    Lisa Wess

    20502 posts

    Ok, usually that indicates an unclosed weblog entries tag.  What I would recommend doing is moving your weblog entries tag code into a normal template, and seeing if that renders your custom fields correctly.

    Also, are you getting {title} output? Or is that also showing up on the page? You might make sure that your weblog’s shortname is really Podcast and not podcast.

  • #3 / Apr 01, 2008 4:54pm

    wurdz

    14 posts

    Hmm. The following doesn’t render in a normal page:

    {summary}{body}{extended}

    However, the Title “does” render.

    Very weird. Any other thoughts?

    P.S. I’ve tried Podcast and podcast (lower p) and both do the same thing.

  • #4 / Apr 01, 2008 4:57pm

    Lisa Wess

    20502 posts

    When you go to publish a post, all of those fields are showing up, correct? I just want to double that that the field group is assigned to the weblog.

    Also, what version and build of EE are you on?

  • #5 / Apr 01, 2008 5:01pm

    wurdz

    14 posts

    Here is what shows up as available entries when I go to create a new post:

    Title
    URL Title
    Image
    Body
    Priority
    Long Name
    MP3 File Name

    I’m on version 1.6.2

  • #6 / Apr 01, 2008 5:20pm

    wurdz

    14 posts

    Ok, I’m a dunce. Thanks for your help. I had the {body} tag wrong. It was {cf_main_body}. Sheesh!

  • #7 / Apr 01, 2008 6:01pm

    Lisa Wess

    20502 posts

    You have no idea how many times I’ve done that on my own site.  No worries, glad you were able to find it!

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

ExpressionEngine News!

#eecms, #events, #releases