Displaying first picked-by-hand image in Panel for a Page

Good morning all. How are we doing?

In the Panel, Pages Section. You have images or thumbnails displayed for the Pages belonging to each Pages Section or such. Very basic and lovely thing.

But how to set Kirby to display the first manually ordered image(file) in the Pages Section for each page.

As it works now (playing with the Personal Demo) it seems to display always the image that is first in alphabetical order.

Could there be a pages.order.num setting for the blueprint or similar?

Best
-j

This can be controlled with the image option.

image: page.images.sortBy("sort").first will obey your manual file order and use the first image in the panel section.

1 Like

@sebastiangreger Thanks for your spot on answer. I appreciate it. :nerd_face: