Displaying images regardless of their names

Hi there,

Attached is a screenshot inside bed-one folder which lives inside the betten folder which lives inside the content folder. File structure: content/betten/bed-one

Now, this line of code allows me to display the productimage.png: <?php if ($image = $betten->image('productimage.png')) : ?>

This line of code allows me to display the palette-2.jpg: <img src="<?= $item->image()->toFile()->url() ?>">

My question: Is there a way to make the first and the second lines of code display the images regardless of their names? I had to rename my image files to productimage.png and palette-2.jpg in order for them to be displayed.

Screenshot_20230925_190124

Hi,

you can show all images in your folder:

cheers…