Tutorials » Custom RSS Feed
Support
Goals
Create an RSS feed with the following features beyond &format=`rss`:
- Hardcoded author name
- The entire contents of each article shows instead of a summary
Steps
- Create a new chunk call "ditto_rss_tpl" with the contents:
<item> <title>[+rss_pagetitle+]</title> <link>[(site_url)][~[+id+]~]</link> <description><![CDATA[ [+content+] ]]></description> <pubDate>[+rss_date+]</pubDate> <guid isPermaLink="false">[(site_url)][~[+id+]~]</guid> <dc:creator>[(site_name)]</dc:creator> [+tagLinks+] </item>In this chunk, [(site_name)] replaces the current documents author and [+content+] returns the entire document instead of just its summary
- Add
[!Ditto? &format=`rss` &tpl=`ditto_rss_tpl`!]to a new document titled[(site_name)] Feed - Make sure the document template is blank and the content-type text/xml