Need Guidance on Filtering With Code

Hello everyone,

First, I really don’t know how to code, so please pardon my ignorance.

I have a gallery connected to a dataset. I have a set of dropdowns to filter the items displayed on that gallery without code. The options in the dropdowns come from different datasets. The items on the gallery are linked to the item’s Title Dynamic Page.

Though basic and primitive, it is working. I select options from the dropdowns, items are filtered, I click on an item’s image and it opens the Title Dynamic Page for that particular item, where I have the full-size image with additional info about the item.

My items are pictures of aircraft scale models.

What I am trying to achieve:

Once in the Title Page, I would like users to be able to go back to the page where I have the gallery, but I want the data to be filtered based on a selection made on the item’s page.

For example,

On the gallery, I click on a photo of an American Airlines Boeing 737. The Title Page opens. Once on the title page, the user decides to look at all the pictures of American Airlines regardless of aircraft type, or conversely all of the Boeing 737 pictures regardless of airline. So the user clicks on the respective value they want to use to filter the gallery, and I’d like this to take them back to the gallery, and show them the filtered data.

Pretty much how Airliners dot net or JetPhotos dot net work, just on a much, much smaller and basic scale.

Where I’m at:

I used some code to get me back from the Title Dynamic Page to the page where I have the gallery, and to transfer the value/text that I want to use to filter the data. I have gotten this value/text to populate on an input text box, and the respective dropdown. I only need to use one of those two approaches, but have tried both just experimenting.

However, I can’t filter the gallery. I have messed around with different codes just shooting in the dark, and have gotten the gallery to disappear, to flicker (sometimes with the propper filtered data, but not always) and to just stay there unfiltered, even though the value/text has been transferred from the Title Dynamic Page.

Any ideas on how to get me started in even going in the right direction?

Again, for practical purposes, I really don’t know how to code beyond making elements show up or disappear…

Any help is much appreciated, I have been stuck for more than a week.

Just an update, I was able to achieve what I was trying to achieve by choosing to display the filtered results on the Title Dynamic Page using 6 collapsable galleries, one for each parameter I want to filter out and using an anchor. Not sure if it is the most elegant or effective approach, but for now it is getting the job done.