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!





<{foreach item=item from=$block.items name=photoLoop}>
<{if $item.photo}>
<{else}><{continue}>
<{/if}>
<{/foreach}>
<{$item.photo}>

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

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Maybe this article will help:

Support XOOPS => DONATE
Use 2.5.11 | 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

237 user(s) are online (142 user(s) are browsing Support Forums)


Members: 0


Guests: 237


more...

Donat-O-Meter

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

Latest GitHub Commits