|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Pin Smarty n00b
Joined: 02 Feb 2005 Posts: 2
|
Posted: Wed Feb 02, 2005 4:49 pm Post subject: Mehrdim. Array |
|
|
Hallo,
ich habe erst angefangen mich mit smarty zu beschäftigen, leider weiss ich nicht ob folgendes machbar ist und wenn ja wie ich es am besten lösen kann.
ich habe die suche benutzt konnte aber leider nichts vergleichbares finden.
ich habe eine menübox erstellt:
Code: |
{section name=rows loop=$Menumain}
<table width="135" border="0" cellpadding="0" cellspacing="3" class="tabelle">
<tr>
<td class="zelle"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="blocktop" ><img src="{$image_pfad}/headlines/{$Menumain[rows]}.gif" alt="{$Menumain[rows]}"></td>
</tr>
<tr>
<td bgcolor="#FBFBFB" class="breakline"><img src="{$image_pfad}/blank.gif" width="1" height="1"></td>
</tr>
<tr>
<td align="left">
???
</td>
</tr>
</table></td>
</tr>
</table>
<br>
{/section} |
dort wo die ??? stehen sollen die links erscheinen.
in der php habe ich das:
[php:1:1fb87cbb43]<?php
$smarty->assign("Menumain", array("ubersicht", "statistik_menu", "community"));
?>[/php:1:1fb87cbb43]
damit erzeuge ich 3 solche menüboxen, ich habe schon einige sachen porbiert, aber es endet meist damit damit er mir die links die in der 1. box(ubersicht) auch in box 2 und 3 anzeigt.
hat jmd einen tipp, wie ich das sinnvoll lösen kann? |
|
Back to top |
|
Pin Smarty n00b
Joined: 02 Feb 2005 Posts: 2
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|