|
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 |
amorek Smarty n00b
Joined: 17 Apr 2004 Posts: 4
|
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Mon Jan 10, 2005 5:54 pm Post subject: |
|
|
You could do that work in PHP. That is, only assign the images that should be displayed, or supply a boolean value along with each image that determines if it should display or not (using file_exists() to set each boolean value)
Code: | {section name=foo loop=$images}
{if $images[foo].display}
<img src="{$images[foo].name}">
{/if}
{/section} |
|
|
Back to top |
|
amorek Smarty n00b
Joined: 17 Apr 2004 Posts: 4
|
|
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
|