Direct display of images on a page according to attributes

Permalink
Hello
After several attempts, I can not do what I want.
I turn to you if you have a solution.

My photos have a "product" attribute.
On the example attached, I have selected for this photo 2 products.

I would like to display on a page all photos that have an attribute "particular" for example "cladding".

So I have a page that I also call "siding".
But after ?

My page should contain the result of a search but directly the result without the visitor doing a search when it is on this page.

In fact, I would need a list of images as thumbnails that meet my criteria when I arrive on the page from a link on another page.

I have an excellent extension "Grid Gallery 2".
It allows to sort the "tags"
I would have done well for the display of photos by changing the sort by Tag with a sort by subject.
But, that only works with collections and what I'm looking for is to display in my page all the images that exist in the file manager, which are therefore images with the right attributes.

One or more solutions?

Thank you

1 Attachment

Elstud
 
JohntheFish replied on at Permalink Reply
JohntheFish
The core 'Attribute display' block will do that. So you can either use that block, or copy the relevant code from it.

Another source of example code is the core 'Page Lis' block. One of the options is to show a thumnail attribute for each page, so a different example of how to do it.
Elstud replied on at Permalink Reply 2 Attachments
Elstud
Hello,
I tried the block attribute, but I retrieve the values ​​of the attribute and not the images for which I checked attributes in their properties.

The page list block retrieves pages, it does not work.
I try to display in one page all the photos in my library with a particular "subject" attribute.

I turn around ..