[MTOS-dev] Size of an array in template
Beau Smith
beau at sixapart.com
Tue May 13 10:08:27 PDT 2008
Yeah, It'd be great if there was a __size__ variable added to the
Template Loop Meta Variables.
I guess you could loop through the block first and then take the last
__counter__ value... but a size variable seems like a better solution.
http://www.movabletype.org/documentation/designer/loop-meta-variables.html
Added a case for this: http://bugs.movabletype.org/default.asp?79738
_beau
On May 13, 2008, at 7:37 AM, Steve Ivy wrote:
> Is there a way to test the size of an array in a template? In a couple
> places, I'd like to output different html based on if an array
> variable contains one, or more than one, item.
>
> --Steve
>
> --
> Steve Ivy
> http://redmonk.net // http://diso-project.org
> This email is: [ ] bloggable [x] ask first [ ] private
> _______________________________________________
> MTOS-dev mailing list
> MTOS-dev at sixapart.com
> http://www.sixapart.com/mailman/listinfo/mtos-dev
More information about the MTOS-dev
mailing list