-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathsample-atom.txt
More file actions
executable file
·43 lines (37 loc) · 1.81 KB
/
sample-atom.txt
File metadata and controls
executable file
·43 lines (37 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{preload_replace:master_channel_name="default_site"}
{preload_replace:atom_feed_location="site/atom"}
{exp:rss:feed channel="{master_channel_name}"}
<?xml version="1.0" encoding="{encoding}"?>
<!-- <?xml-stylesheet type="text/xsl" href="{path=site/atom-xsl}"?> -->
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{channel_language}">
<title type="text"><![CDATA[{channel_name}]]></title>
<subtitle type="text"><![CDATA[{channel_description}]]></subtitle>
<link rel="alternate" type="text/html" href="{channel_url}" />
<link rel="self" type="application/atom+xml" href="{path='{atom_feed_location}'}" />
<updated>{gmt_edit_date format='%Y-%m-%dT%H:%i:%sZ'}</updated>
<rights>Copyright (c) {gmt_edit_date format="%Y"}, {author}</rights>
<generator uri="https://expressionengine.com/">ExpressionEngine</generator>
<id>tag:{trimmed_url},{gmt_edit_date format="%Y:%m:%d"}</id>
{exp:channel:entries channel="{master_channel_name}" limit="15" dynamic_start="on" disable="member_data|pagination"}
<entry>
<title><![CDATA[{title}]]></title>
<link rel="alternate" type="text/html" href="{url_title_path=site/index}" />
<id>tag:{trimmed_url},{gmt_entry_date format="%Y"}:{relative_url}/{channel_id}.{entry_id}</id>
<published>{gmt_entry_date format="%Y-%m-%dT%H:%i:%sZ"}</published>
<updated>{gmt_edit_date format='%Y-%m-%dT%H:%i:%sZ'}</updated>
<author>
<name>{author}</name>
<email>{email}</email>
{if url}<uri>{url}</uri>{/if}
</author>
{categories}
<category term="<![CDATA[{category_name}]]>"
scheme="{path=site/index}"
label="<![CDATA[{category_name}]]>" />{/categories}
<content type="html"><![CDATA[
{body} {extended}
]]></content>
</entry>
{/exp:channel:entries}
</feed>
{/exp:rss:feed}