Page 1 of 1

Is this RSS template correct?

Posted: Tue Jul 26, 2005 3:15 pm
by Alex_Leipzig

Code: Select all

<?xml version='1.0'?>
<rss version='2.0'>
	<channel>
		<title>IALT aktuell</title>
		<link>{$root_url}</link>
		<language>de-de</language>
		<copyright>2005 IALT Leipzig</copyright>
		<description>Aktuelle Nachrichten des Institutes für Angewandte Linguistik und Translatologie der Universität Leipzig</description>
		{foreach from=$items item=entry}
		<item>
			<title>{$entry->title}</title>
			<pubDate>{$entry->gmdate}</pubDate>
			<category>{$entry->category}</category>
			<description><![CDATA[[color=Red]{if}{$entry->summary}<br>{/if}[/color]{$entry->content}]]></description>
		</item>
		{/foreach}
	</channel>
</rss>
I wasn't sure wether the {if} tags were allowed here.

Re: Is this RSS template correct?

Posted: Tue Jul 26, 2005 3:28 pm
by Ted
I think it would need to be:

Code: Select all

{if $entry->summary}$entry->summary<br />{/if}
Don't forget the / in the br tag if you want it to be valid xml.

Re: Is this RSS template correct?

Posted: Tue Jul 26, 2005 4:23 pm
by Alex_Leipzig
Thanks a lot!