[pLog-svn] r1296 - plog/trunk/templates/rss

oscar at devel.plogworld.net oscar at devel.plogworld.net
Thu Mar 3 22:16:21 GMT 2005


Author: oscar
Date: 2005-03-03 22:16:20 +0000 (Thu, 03 Mar 2005)
New Revision: 1296

Modified:
   plog/trunk/templates/rss/rss20.template
Log:
according to the rss 2.0 specs, we should include as multiple <category> tags as necessary per item. 

Modified: plog/trunk/templates/rss/rss20.template
===================================================================
--- plog/trunk/templates/rss/rss20.template	2005-03-03 06:36:34 UTC (rev 1295)
+++ plog/trunk/templates/rss/rss20.template	2005-03-03 22:16:20 UTC (rev 1296)
@@ -15,11 +15,9 @@
    <guid>{$url->postPermalink($post)}</guid>
    {assign var="postOwner" value=$post->getUserInfo()}
    <author>{$postOwner->getUsername()|escape}</author>
-   <category>
-     {foreach from=$post->getCategories() item=category}
-      {$category->getName()|escape} 
-     {/foreach}
-   </category>
+   {foreach from=$post->getCategories() item=category}   
+    <category>{$category->getName()|escape}</category>
+   {/foreach} 
    <source url="{$url->rssLink("rss20")}">{$blog->getBlog()|escape}</source>
   </item>
   {/foreach}




More information about the pLog-svn mailing list