RE: [SMARTY] 3 photos at one row
| From: | Eduardo | Date: | Fri, 21 Nov 2003 16:07:18 +0000 |
| Subject: | RE: [SMARTY] 3 photos at one row | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10582@lists.php.net to get a copy of this message | ||
Oh, sweet!! Like a candy for the designers but so gay for the
programmers. Hehehe
No, seriously talking I always try to use the nice syntax that Monte
suggests; it really suits better the templates.
-----Original Message-----
From: Monte Ohrt [mailto:monte@ispi.net]
Sent: Friday, November 21, 2003 9:38 AM
To: Jan Rosier / Interstroom
Cc: Smarty General
Subject: Re: [SMARTY] 3 photos at one row
Just an FYI, you can optionally use some syntactic sugar:
{if $smarty.section.row.rownum is div by 3 AND not
$smarty.section.row.last}
in case you want to help keep your templates understandable
by the non-programmer types :) Basically, 'X is div by N' is a synonym
to 'X % N == 0'
Monte
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php