Is this RSS template correct?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
Alex_Leipzig

Is this RSS template correct?

Post 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.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: Is this RSS template correct?

Post 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.
Alex_Leipzig

Re: Is this RSS template correct?

Post by Alex_Leipzig »

Thanks a lot!
Locked

Return to “Modules/Add-Ons”