|
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 |
DBFT Smarty n00b
Joined: 18 Jan 2007 Posts: 2
|
Posted: Sun Jan 21, 2007 9:51 am Post subject: Specific place in loop |
|
|
I currently loop over all results like this:
{section name=mysec loop=$leadership}
// all the code for layout here... using things such as {$leadership[mysec].bio}
{/section}
However, I want to be able to pass a $start variable, which will be the place the loop will start, it should then loop 3 times(at most - if there is not a further 3 in the array it should just stop)
is this possible with smarty? |
|
Back to top |
|
Pap Smarty Regular
Joined: 21 Jun 2006 Posts: 69 Location: Denver, CO
|
|
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
|