|
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 |
smisonline2 Smarty Rookie
Joined: 12 Mar 2014 Posts: 7
|
Posted: Thu May 22, 2014 9:43 am Post subject: Platzhalter in Smartycode? |
|
|
Ich habe ein menu, dass wie folgt definiert ist
Code: | {section name=entry loop=$mainmenu}
<!--<li><a href="{$mainmenu[entry].link}">{$mainmenu[entry].title}</a></li>-->
<li>
<a href="{$mainmenu[entry].link}">{$mainmenu[entry].title}</a>
</li>
{/section} |
Aus der Datenbank wird der Smarty Platzhaletr ausgelesen, da dieser anhand eienr Language Config üebrsetzt werden soll.
Da wird dann {$mainmenu[entry].link} durch z.B. {#news#} ersetzt.
Das interpretiert Samrty aber im Nachinhein nicht mehr, sondern gibt direkt {#news#} aus. Wie kann ich das anpassen bzw, wie kann ich das dynamisch anders einbinden,d ass diese Übersetzung durch Smarty funktioniert? |
|
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
|