Created
April 16, 2013 12:04
-
-
Save 1stevengrant/5395411 to your computer and use it in GitHub Desktop.
xml feed of articles for ExpressionEngine
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:master_channel_name="articles"} | |
{exp:rss:feed channel="{master_channel_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><![CDATA[{channel_name}]]></title> | |
<link>{site_url}articles</link> | |
<description>A feed of articles</description> | |
<dc:language>{channel_language}</dc:language> | |
<dc:creator>{webmaster}</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:channel:entries channel="{master_channel_name}" dynamic="no" orderby="date" disable="member_data|pagination"} | |
<item> | |
<title><![CDATA[{title}]]></title> | |
<link>{structure:parent:url}</link> | |
<guid>{page_url}</guid> | |
<description><![CDATA[{cf_article_intro}{cf_article_content}]]></description> | |
<dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date> | |
</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