On Mon, 20 Aug 2007, Simon Wilcox wrote:

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

And it's broken when your list contains objects/hashrefs and not plain scalars.

Jess


_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to