[Templates] Problem with single element arrays

Simon Wilcox essuu@ourshack.com
Mon, 20 Aug 2007 12:29:12 +0100


David wrote:
> 
> [% product.images.first.filename %]

Try [% product.images.list.first.filename %] to force the scalar into a 
list, it's a noop on listrefs. See also Template::Manual::VMethods

S.