Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Platzhalter in Smartycode?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German
View previous topic :: View next topic  
Author Message
smisonline2
Smarty Rookie


Joined: 12 Mar 2014
Posts: 7

PostPosted: Thu May 22, 2014 9:43 am    Post subject: Platzhalter in Smartycode? Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP