[imc-sf-coders] CVS update of sf-active/sf-active/sitename/local/templates/pages (1 file)

Bart M pseudopunk at codecoop.org
Thu Dec 29 12:22:22 PST 2005


    Date: Thursday, December 29, 2005 @ 21:22:22
  Author: pseudopunk
    Path: /cvsroot/sf-active/sf-active/sf-active/sitename/local/templates/pages

Modified: publish.tpl

closes 373 -- it was made to only do multicat publishing. fixed that


Index: sf-active/sf-active/sitename/local/templates/pages/publish.tpl
diff -u sf-active/sf-active/sitename/local/templates/pages/publish.tpl:1.19 sf-active/sf-active/sitename/local/templates/pages/publish.tpl:1.20
--- sf-active/sf-active/sitename/local/templates/pages/publish.tpl:1.19	Tue May 31 12:29:09 2005
+++ sf-active/sf-active/sitename/local/templates/pages/publish.tpl	Thu Dec 29 21:22:21 2005
@@ -49,6 +49,7 @@
 </tr>
 
 {if !$tkeys.top_id}
+{if $tkeys.cat_forms}
 {foreach name=l item=item from=$tkeys.cat_forms}
 <tr>
     <td width="25%">
@@ -59,7 +60,8 @@
 	{assign var=catt value=cat`$item`_options}
 	{html_options name="category[]" options=$tkeys.$catt  selected=$tkeys.art.category}
     </td>
-{foreachelse}
+{/foreach}
+{else}
 <tr>
 	<td width="25%">
 	{$dict.category}
@@ -68,7 +70,7 @@
 	{html_options name="category[]" options=$tkeys.cat_options selected=$tkeys.art.category}
 	</td>
 </tr>
-{/foreach}
+{/if}
 {/if}
 
 <tr valign="top" class="bgpenult"> 


More information about the imc-sf-coders mailing list