|
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 |
diede Smarty n00b
Joined: 17 Sep 2004 Posts: 2
|
Posted: Fri Sep 17, 2004 2:21 pm Post subject: config_load: dynamisch auf Einträge zugreifen |
|
|
Hallo zusammen,
ich habe folgende Konfigurationsdatei zur Abbildung von Menueinträgen:
(...)
# global variables
MNU_MENU1 = Menu1
MNU_MENU2 = Menu2
(...)
Ich habe im Template nun eine Schleife implementiert, die mir aus einem Hash die Schlüssel ausliest.
(...)
{foreach name=menuitems item=menuitem from=$menu}
{$menuitem}
{/foreach}
(...)
In $menuitem sind die darzustellenden Schlüssel enthalten: MNU_MENU1, MNU_MENU2,... und werden ausgegeben....
Gibt es eine Möglichkeit, {$menuItem} vorher auszuwerten, so dass letztendlich die Tags {#MNU_MENU1#}, {#MNU_MENU2#}, ... zur Ausgabe der Werte der Schlüssel verwendet werden können... ?
{#{$menuitem}#} funktioniert nicht....
Für Eure Mühe im voraus vielen Dank.
Gruß,
diede |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
|
Back to top |
|
diede Smarty n00b
Joined: 17 Sep 2004 Posts: 2
|
Posted: Fri Sep 17, 2004 2:45 pm Post subject: |
|
|
Hallo !
Vielen Dank für die schnelle Antwort... =)
Gruß,
diede |
|
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
|