1
c0ntrite
Smarty 'Continue' workaround help!
  • 2012/7/24 20:17

  • c0ntrite

  • Just popping in

  • Posts: 21

  • Since: 2007/1/26


Hello Guys,

I would like something like this to work, unfortunately, <{continue}> doesn't work. I want it to skip the iteration if there is no photo. Please help, thanks!

<br /><br />
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<{foreach item=item from=$block.items name=photoLoop}>
<{if $item.photo}><td align="left"><{$item.photo}></td>
<{else}><{continue}>
<{/if}>
<{/foreach}>
</table>

2
Mamba
Re: Smarty 'Continue' workaround help!
  • 2012/7/24 20:36

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Maybe this article will help:

Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

3
c0ntrite
Re: Smarty 'Continue' workaround help!
  • 2012/7/24 22:41

  • c0ntrite

  • Just popping in

  • Posts: 21

  • Since: 2007/1/26


Thanks! It worked perfectly! :)

Login

Who's Online

202 user(s) are online (135 user(s) are browsing Support Forums)


Members: 0


Guests: 202


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits