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

Index the image type to retrieve it if needed in the display template #226

Merged
merged 4 commits into from
Nov 28, 2024

Conversation

delyriand
Copy link
Member

Summary:

  • Readd the jane-php/json-schema to generate DTO and regenerate DTO classes with the last version
  • Add "type" in ImageDTO and the automapper add value from Image class
  • Add method in ProductDTO to retrieve images by type

image

image

With {{ dump(item.imagesByType('main')|first) }} in Product template:

image

@delyriand delyriand force-pushed the feature/index-image-type branch from 28ae62a to acf97e1 Compare November 28, 2024 09:19
@maximehuran maximehuran merged commit 9eb493c into monsieurbiz:master Nov 28, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants