Skip to main content

Hello!


I have several Image components in a page and I would like that each of them displays a different image stored in a library. For example, the component Image 1 should display the library file A, the component 2 the file B, etc.


Would this be possible without having to create a model with conditions for each of the components?


Many thanks,

Jesús

Not exactly sure if I understand what you are asking, but if you put an image inside of a deck component, that deck component may be able to pull the image references for each image from a single model.


Skuidward is correct. If the images records are in the same model - with every image being a separate row, the deck will iterate over the rows in the model and the components inside the deck will be bound to the correct row.


Many thanks for your replies! I already tried to use a deck component but I would prefer the flexibility that independent image/wrapper components provides so I have finally stored the images as a static resource and use URL as the image source.


Reply