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

eigenes Plugin - Problem bei Ausgabe des Contents

 
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
axelf
Smarty Rookie


Joined: 26 Jan 2012
Posts: 10

PostPosted: Thu Jan 26, 2012 8:59 am    Post subject: eigenes Plugin - Problem bei Ausgabe des Contents Reply with quote

Hi,

In der Doku zu Plugins und dem Parameter $content steht:

Achtung: Der Template-Abschnitt den Sie erhalten, wurde bereits von Smarty bearbeitet. Sie erhalten also die Template-Ausgabe, nicht den Template-Quelltext.

Nun habe ich das Problem, das ich nicht mehr auf das Array zugreifen kann, denn man erhält nicht den Wert sondern nur das Wort "Array"

Code:
{myblock}$viewdata.name{/myblock}


viewdata.name ist ein Array und per Schleife wollte ich die Werte ausgeben. Weiß jemand wie man das machen kann?
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Thu Jan 26, 2012 4:17 pm    Post subject: Reply with quote

{foreach $viewdata.name as $foo}
{$foo}
{/foreach}
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