Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not use where filter on images #1756

Open
stijns96 opened this issue Nov 9, 2023 · 0 comments
Open

Can not use where filter on images #1756

stijns96 opened this issue Nov 9, 2023 · 0 comments

Comments

@stijns96
Copy link

stijns96 commented Nov 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant