Robert Posted May 4, 2014 Share Posted May 4, 2014 To create an RSS feed for your TGPX site, use the following code: {define name=globaldupes value=true} {define name=pagedupes value=false} {php} echo '<?xml version="1.0" ?>'; {/php} <rss version="2.0"> <channel> <title>YOUR SITE NAME</title> <description>YOUR SITE DESCRIPTION</description> <link>YOUR SITE URL</link> {galleries var=$galleries preview=true type=any category=MIXED amount=25 getnew=true allowused=true order=date_approved reorder=date_displayed DESC, date_approved} {foreach var=$g from=$galleries} <item> <title>{$g.thumbnails|htmlspecialchars} {$g.category|htmlspecialchars} {$g.format|htmlspecialchars}</title> <link>{$g.gallery_url|htmlspecialchars}</link> <description> <a href="{$g.gallery_url|htmlspecialchars}" title="Thumb"><img src="{$g.preview_url|htmlspecialchars}" alt="Thumb" border="0" /></a> <br /><br /> {$g.description|htmlspecialchars} </description> <pubDate>{$g.date|tdate::'D, d M Y H:i:s -0600'}</pubDate> </item> {/foreach} </channel> </rss> Note, you need to replace the text, "YOUR SITE NAME", "YOUR SITE DESCRIPTION" and "YOUR SITE URL" with your own information. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now