Shopify / liquid

Liquid markup language. Safe, customer facing template language for flexible web apps.

Home Page:https://shopify.github.io/liquid/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can not use where filter on images

stijns96 opened this issue · comments

Since the image objects automatically outputs the handle by default, it's impossible to use the where filter on it.

{%- assign image = product.images | where: 'id', 123 -%}

This will result in storing the handle as a string in my assign, instead of storing it as an object.

I actually want to have the image object as an object by default and not as handle. Or we could do something like image.object for example.