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

how to dynamically set max in {section}

 
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 -> Tips and Tricks
View previous topic :: View next topic  
Author Message
stingtao
Smarty Rookie


Joined: 15 Jan 2006
Posts: 5

PostPosted: Sun Jan 29, 2006 6:42 pm    Post subject: how to dynamically set max in {section} Reply with quote

for example, I have assigned $txtOptions to be 3

{section name=loopoptions loop=1 max=$txtOptions step=1}
do something
{/section}

but it only run once. why is that?


Last edited by stingtao on Wed May 05, 2010 10:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
stingtao
Smarty Rookie


Joined: 15 Jan 2006
Posts: 5

PostPosted: Sun Jan 29, 2006 6:50 pm    Post subject: I am stupid Reply with quote

didn't read throught the document. I got it.

{section name=loopoptions start=1 loop=10 max=$txtOptions step=1}
do something
{/section}
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 -> Tips and Tricks 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