[pLog-svn] r1177 - plog/trunk/templates/standard

jondaley at devel.plogworld.net jondaley at devel.plogworld.net
Thu Feb 24 01:38:02 GMT 2005


Author: jondaley
Date: 2005-02-24 01:38:02 +0000 (Thu, 24 Feb 2005)
New Revision: 1177

Modified:
   plog/trunk/templates/standard/searchresults.template
Log:
multiple categories

Modified: plog/trunk/templates/standard/searchresults.template
===================================================================
--- plog/trunk/templates/standard/searchresults.template	2005-02-23 18:49:01 UTC (rev 1176)
+++ plog/trunk/templates/standard/searchresults.template	2005-02-24 01:38:02 UTC (rev 1177)
@@ -14,8 +14,14 @@
       {$article->getText()|strip_tags|truncate:300:"...":false}
       </p>
       {assign var="articleCategory" value=$article->getCategory()}
-      <p class="footer""><a href="{$url->postCategoryLink($article)}">{$articleCategory->getName()}</a></p>
-
+      <p class="footer"">
+		{foreach name=categories from=$article->getCategories() 
+				 item=postCategory}
+          <a href="{$url->postCategoryLink($article)}">
+			 {$postCategory->getName()}</a>{if 
+				!$smarty.foreach.categories.last}, {/if}
+        {/foreach}
+      </p>
     {/foreach}
    </div> 
 {include file="$blogtemplate/footer.template"} 




More information about the pLog-svn mailing list