Created
February 10, 2011 17:17
-
-
Save davist11/820911 to your computer and use it in GitHub Desktop.
ExpressionEngine 2 RSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{preload_replace:channel="blog|work"} | |
{exp:rss:feed channel="{channel}"} | |
<?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/" | |
xmlns:atom="http://www.w3.org/2005/Atom"> | |
<channel> | |
<title>{exp:xml_encode}{site_name}{/exp:xml_encode}</title> | |
<link>{site_url}</link> | |
<description>Trevor Davis</description> | |
<dc:language>en</dc:language> | |
<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/" /> | |
<atom:link href="{site_url}site/rss" rel="self" type="application/rss+xml" /> | |
{exp:channel:entries channel="{channel}" limit="30" rdf="off" dynamic_start="on" disable="member_data|trackbacks|pagination"} | |
<item> | |
<title>{exp:xml_encode}{title}{/exp:xml_encode}</title> | |
<dc:creator>{author}</dc:creator> | |
<link>{if channel_short_name == "blog"}{if general_url}{general_url}{if:else}{url_title_path="blog"}{/if}{if:else}{url_title_path="work"}{/if}</link> | |
<guid>{if channel_short_name == "blog"}{if general_url}{general_url}{if:else}{url_title_path="blog"}{/if}{if:else}{url_title_path="work"}{/if}</guid> | |
{if channel_short_name == "blog"}<comments>{url_title_path="blog"}#comment_form</comments>{/if} | |
{categories}<category><![CDATA[{category_name}]]></category>{/categories} | |
<description> | |
<![CDATA[ | |
{if general_image} | |
<p><a href="{url_title_path="work"}"><img src="{general_image}" alt="{title}" height="235" width="440"}</a></p> | |
{/if} | |
{general_body} | |
]]> | |
</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> | |
{!--<slash:comments>{comment_total}</slash:comments>--} | |
</item> | |
{/exp:channel:entries} | |
</channel> | |
</rss> | |
{/exp:rss:feed} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment