Oh, and maybe it is also good to show how my template file (in view/
rss) looks:
-----------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
<title>title</title>
<description>descr</description>
<link>http://link.com/</link>
<webMaster>[EMAIL PROTECTED]</webMaster>
<copyright>Copyright 2007, company</copyright>
<language>nl</language>
<managingEditor>[EMAIL PROTECTED]</managingEditor>
<image>
<title>title</title>
<url>http://test.link.nl/img/site/logo.jpg</url>
<link>http://link.com/artikel.rss</link>
</image>
{if (!empty($artikelen))}
{$rss->items($artikelen, 'transformRSS')}
{/if}
{php}
function transformRSS($artikelen) {
return array(
'title' => $artikelen['Artikel']['artTitel'],
'link' => array('url'=>'/artikelen/view/'.
$artikelen['Artikel']['artId']),
'description' => $artikelen['Artikel']
['artInleiding'],
'guid' => array('url'=>'/artikelen/view/'.
$artikelen['Artikel']['artId']),
);
}
{/php}
</channel>
</rss>
-----------------------------------------------------------------------------------------------------------------------------
I left some details out to make it more readable.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---