DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

EE RSS

06.04.2009
| 2847 views |
  • submit to reddit
        // this is the way I recommend to avoid dupes in your EE RSS feed in Google, NNW, etc...
// note that this is just the content portion. don't forget the description, title, etc. headers


{exp:weblog:entries weblog="{master_weblog_name}" status="open" limit="25" rdf="off" dynamic_start="on" disable="member_data|trackbacks"}
    <item>
      <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
      <link>{comment_url_title_auto_path}</link>
      <description>{exp:word_limit total="100"}{exp:xml_encode}{body}{/exp:xml_encode}{/exp:word_limit}</description>
      <dc:subject>{exp:xml_encode}{categories backspace="1"}{category_name}, {/categories}{/exp:xml_encode}</dc:subject>
      <pubDate>{entry_date format="{DATE_W3C}"}</pubDate>
      <guid isPermaLink="false">{entry_id}</guid>
    </item>
{/exp:weblog:entries}