Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6098331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:08:45+00:00 2026-05-23T13:08:45+00:00

I am working on a product page and need to create two separate galleries

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:08:46+00:00Added an answer on May 23, 2026 at 1:08 pm

    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:

    • Get a list of all images for the product
    • Itinerate through each finding out all the details and sorting inside two arrays.
    • Going through each array for each gallery and outputting the images inside the right tags.

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on one product which requires extensive testing of emails. I have
Ive started working on a product that uses license files. These files need to
I'm currently working on a project where our product at the current version is
I'm currently working on the internationalization of a product and an issue has come
One of the components I need for an application I am working on is
I'm currently making a page with loads of products on, which need to be
My problem is that the website I'm currently working on has two tables for
Thread is in continuation of sending-data-back-to-controller-spring-mvc I am working on a product detail page
I'm working on a product which relies on several different projects each hosted in
I am working on a product data importing system which downloads product data from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.