I am working on a product page and need to create two separate galleries – one main gallery and additional one. Currently I output images with empty label on main gallery and images with specific prefix on additional one.
Is there a way to query only images labeled by specified label? I found only getMediaGalleryImages method which doesn’t do anything specific.
Or maybe there is just the other way to work with the gallery?
By default there is no way to query images based on a labels or other conditions except for the main and thumbnail options. We use the following setup:
Aother way of doing this would be to extend the product model and adding another gallery field. But that’s IMO much too complex for something this simple.