EE1.6.9 RSS Code


/ Published in: XML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. {assign_variable:master_weblog_name="blog"}
  2. {exp:rss:feed weblog="{master_weblog_name}"}
  3.  
  4. <?xml version="1.0" encoding="{encoding}"?>
  5. <rss version="2.0"
  6. xmlns:dc="http://purl.org/dc/elements/1.1/"
  7. xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  8. xmlns:admin="http://webns.net/mvcb/"
  9. xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  10. xmlns:content="http://purl.org/rss/1.0/modules/content/">
  11.  
  12. <channel>
  13.  
  14. <title>{exp:xml_encode}{site_name} {weblog_name}{/exp:xml_encode}</title>
  15. <link>{weblog_url}</link>
  16. <description>{weblog_description}</description>
  17. <dc:language>{weblog_language}</dc:language>
  18. <dc:creator>{email}</dc:creator>
  19. <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
  20. <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
  21. <admin:generatorAgent rdf:resource="http://expressionengine.com/" />
  22.  
  23. {exp:weblog:entries weblog="{master_weblog_name}" limit="10" rdf="off" dynamic_start="on" disable="member_data|trackbacks"}
  24. <item>
  25. <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
  26. <link>{title_permalink=site/index}</link>
  27. <guid>{title_permalink=site/index}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
  28. <description>{exp:xml_encode}{summary}{/exp:xml_encode}</description>
  29. <dc:subject>{exp:xml_encode}{categories backspace="1"}{category_name}, {/categories}{/exp:xml_encode}</dc:subject>
  30. <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
  31. </item>
  32. {/exp:weblog:entries}
  33.  
  34. </channel>
  35. </rss>
  36.  
  37. {/exp:rss:feed}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.