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

My team is working on a conversion project to convert one product (but with
I'm trying to create a drop down button and its almost working except one
I'm working on a product feature that will allow the user to export data
I am working on a product that runs an SQL server which allows some
The product we are working on allows the user to easily set it up
A product that I am working on collects several thousand readings a day and
Are you working on a (probably commercial) product which uses RDF/OWL/SPARQL technologies? If so,
I'm working on adding globalization to my product cataloge and I have made it
I am working on a drawing-based product where I want to produce versions for
Part of the setup routine for the product I'm working on installs a database

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.