Atom 0.3 feed for your Gallery:
{assign_variable:gallery_name="gallery"}
{assign_variable:gallery_template="gallery"}
{exp:rss:feed weblog="weblog1"}
<?xml version="1.0" encoding="{encoding}"?>
<feed version="0.3"
xmlns="http://purl.org/atom/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xml:lang="{weblog_language}">
<title>{weblog_name}</title>
<link rel="alternate" type="text/html" href="{weblog_url}" />
<tagline>{weblog_description}</tagline>
<modified>{gmt_edit_date format='%Y-%m-
T;%H:%i:&#xsZ;'}</modified>
<generator url="http://www.pmachine.com/" version="{version}">ExpressionEngine</generator>
<copyright>Copyright (c) {date format="%Y"}, {author}</copyright>
{exp:gallery:entries gallery="{gallery_name}" orderby="entry_date" rows="10" columns="1"}
{entries}
{row}
<entry>
<title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
<link rel="alternate" type="text/html" href="{id_path={gallery_template}/image_med}" />
<id>tag:{trimmed_url},{gmt_date format="%Y"}:{url}/{gallery_id}.{entry_id}</id>
<issued>{gmt_entry_date format="%Y-%m-
T;%H:%i:&#xsZ;"}</issued>
<modified>{gmt_edit_date format='%Y-%m-
T;%H:%i:&#xsZ;'}</modified>
<summary>{exp:xml_encode}{caption}{/exp:xml_encode}</summary>
<created>{gmt_entry_date format='%Y-%m-
T;%H:%i:&#xsZ;'}</created>
<author>
<name>{author}</name>
<email>{email}</email>
</author>
<dc:subject>{category}</dc:subject>
<content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<a href="{id_path={gallery_template}/image_med}">
<img src="{thumb_url}" width="{thumb_width}" height="{thumb_height}" alt="{title}" style="border: 0;" /></a><p><strong>{title}</strong></p>
<p>{caption}</p>]]></content>
</entry>
{/row} {/entries}
{/exp:gallery:entries}
</feed>
{/exp:rss:feed}
NOTE: you still need to keep in a weblog name. The weblog info drives what you see in the following fields:
<title>{weblog_name}</title>
<link>{weblog_url}</link>
<description>{weblog_description}</description>
If you create a weblog for your gallery, you’ll be able to set the values of the name, url and description. You don’t neccesarily need to use the weblog on your site.
So set this line:
{exp:rss:feed weblog=“weblog1”}
to
{exp:rss:feed weblog=“galleryweblogname”}
Atom 1.0 Gallery Template
The following template is valid Atom 1.0 and you will need to install the XML Entities plugin. Most of the steps above need to be completed on this template as well:
{assign_variable:gallery_name="gallery"}
{assign_variable:gallery_template="gallery"}
{assign_variable:master_weblog_name="weblog1"}
{assign_variable:atom_feed_path="group/template"}
{exp:rss:feed weblog="{master_weblog_name}"}
<?xml version="1.0" encoding="{encoding}"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{weblog_language}">
<title type="text">{weblog_name}</title>
<subtitle type="text">{exp:xml_encode}{weblog_description}{/exp:xml_encode}</subtitle>
<link rel="alternate" type="text/html" href="{weblog_url}" />
<link rel="self" type="application/atom+xml" href="{path={atom_feed_path}}" />
<updated>{gmt_edit_date format='%Y-%m-
T;%H:%i:&#xsZ;'}</updated>
<rights>Copyright (c) {gmt_date format="%Y"}, {author}</rights>
<generator uri="http://www.pmachine.com/" version="{version}">ExpressionEngine</generator>
<id>tag:{trimmed_url},{gmt_date format="%Y:%m:%d"}</id>
{exp:gallery:entries gallery="{gallery_name}" orderby="entry_date" rows="10" columns="1"}
{entries}
{row}
<entry>
<title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
<link rel="alternate" type="text/html" href="{id_path={gallery_template}/image_med}" />
<id>tag:{trimmed_url},{gmt_date format="%Y"}:{url}/{gallery_id}.{entry_id}</id>
<published>{gmt_entry_date format="%Y-%m-
T;%H:%i:&#xsZ;"}</published>
<updated>{gmt_edit_date format='%Y-%m-
T;%H:%i:&#xsZ;'}</updated>
<author>
<name>{author}</name>
<email>{email}</email>
</author>
<category term="{category}"
scheme="{path=gallery/index}"
label="{category}" />
<content type="html" >
<![CDATA[<a href="{id_path={gallery_template}/image_med}">
<img src="{thumb_url}" width="{thumb_width}" height="{thumb_height}" alt="{title}" style="border: 0;" /></a><p><strong>{title}</strong></p>
<p>{caption}</p>]]>
</content></entry>
{/row} {/entries}
{/exp:gallery:entries}
</feed>
{/exp:rss:feed}
——
Some information was taken from: Gallery RSS Template
Category:RSS Category:Image Gallery
