Mein Problem ist wie bekomme ich es hin in smarty das er automatisch nach z.B. 4 zellen ine nächste spalte anfägt. Ohne Smarty habe ich das so gelöst.
	
aber mit smarty geht das irgendwie nicht hab es mal so versucht
	
klappt aber nicht.
							
						
					PHP-Code:
	
	
       if ($counter == 3)
            {
            echo "</tr><tr>\n";
            $counter = 0;
            }
        echo "blub";
        $counter++; 
PHP-Code:
	
	
<table border="0" cellspacing="0" cellpadding="0" width="100%">
              <tr>
               {foreach from=$bild  item=bilder}
               <td>{if $n == 4} </tr></td>{/if}
               <a target="_blank" href="bild/test/{$bilder.bild2}" class="navi">
<img src='bild/test/{$bilder.bildadresse}'></a>
<br>{$bilder.name}<br>{$bilder.count}<br>{$bilder.kb}
               </td>
               {/foreach} 
              </tr>
             </table> 
 
          
Kommentar