|
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 |
gsoper Smarty Rookie
Joined: 26 Jan 2004 Posts: 20
|
Posted: Mon Feb 02, 2004 10:34 pm Post subject: Nesting |
|
|
Given that
Code: | {$photo_block_error_styles.selected[10]} |
displays the string 'test' and
Code: | {$pictures[photo].id} |
displays the integer 10
Is there no way I can do something like
Code: | {$photo_block_error_styles.selected[$pictures[photo].id]} |
?
I can't figure it out!
Thanks,
Geoff |
|
Back to top |
|
AZTEK Smarty Pro
Joined: 16 Apr 2003 Posts: 235 Location: Purdue University
|
Posted: Tue Feb 03, 2004 12:59 am Post subject: |
|
|
This Code: | {assign var="counter" value=$pictures[photo].id}
{$photo_block_error_styles.selected[$counter]} | should work. _________________ "Imagine a school with children that can read and write, but with teachers who cannot, and you have a metaphor of the Information Age in which we live." -Peter Cochrane |
|
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
|