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.

Images Not Showing in RSS Feed

April 07, 2010 6:52pm

Subscribe [3]
  • #1 / Apr 07, 2010 6:52pm

    4060men

    14 posts

    I’m modifying the original RSS template to display a feed from a specific weblog.  It works great except I can’t get images to show up.  My custom weblog field that contains the image) is called {article-image}. 

    Here is the RSS link: http://www.4060men.com/read/v01/rss-articles/

    And below is my code:

    {assign_variable:master_weblog_name="articles"}
    {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}4060Men.Com : {weblog_name}{/exp:xml_encode}</title>
        <link>{weblog_url}</link>
        <image><url>http://www.4060men.com/images/misc/4060-rss-logo.gif</url></image>
        <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="articles" limit="10" rdf="off" dynamic_start="on" disable="member_data|trackbacks"}
        <item>
          <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
          <link>{title_permalink=v01/articles}</link>
          <guid>{title_permalink=v01/articles}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
          <description>{exp:xml_encode}{article-image}{exp:char_limit total="200"}{article-content}{/exp:char_limit}{/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-%dT%H:%i:%s%Q"}</dc:date>
        </item>
    {/exp:weblog:entries}
        
        </channel>
    </rss>
    
    {/exp:rss:feed}
  • #2 / Apr 08, 2010 1:54am

    John Henry Donovan

    12339 posts

    4060men,

    What version and build of EE are you using?
    Are you using any extensions?

    Can you create a new blank template using weblog as it’s type.
    In it just add this and nothing else. Can you then share the link with us please.

    {exp:weblog:entries weblog="articles" limit="10" disable="member_data|trackbacks" dynamic="off"}
        <h1>{title </h1>
        {article-image}
    {/exp:weblog:entries}
  • #3 / Apr 08, 2010 3:42am

    4060men

    14 posts

    Version 1.6.8, commercial license.  Extensions: jQuery for the Control Panel, Comment Spam Prevention, and Tag Submit.

    Created the template as instructed here: http://www.4060men.com/read/v01/test

    Thanks for your help!

  • #4 / Apr 08, 2010 3:59am

    John Henry Donovan

    12339 posts

    4060men,

    In your test template there is a load of extra markup.
    Can you just add the code I provided and nothing else please?

  • #5 / Apr 08, 2010 12:05pm

    4060men

    14 posts

  • #6 / Apr 08, 2010 1:19pm

    Sue Crocker

    26054 posts

  • #7 / Apr 08, 2010 9:07pm

    4060men

    14 posts

    Oh wow, that worked beautifully!  Thanks Sue!  http://www.4060men.com/read/v01/rss-articles/

  • #8 / Apr 08, 2010 9:22pm

    Sue Crocker

    26054 posts

    Glad to hear.. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases