Hi folks, is it common for Kirby to alphabetically sort images attached to a page even if sortable is set to true in the blueprint? No matter if I manually sort the images in the panel Kirby is displaying my cover image based on the filename. I’m not sure if it’s something related to my customization or if this is native Kirby functionality.
Here’s the scoop:
Let’s assume I upload a series of images (image1.jpg, image2.jpg, image3.jpg). The way I currently have it configured, Kirby will automatically display image1.jpg as my cover photo and the other two can be used in the content textarea if the user wishes to drag-n-drop them in as kirbytext, e.g. (image: image1.jpg).
If I manually sort the images in the panel and move image2.jpg as the first image in the series, I figured Kirby would display it as the cover image instead of image1.jpg.
It doesn’t.
It’s probably easier to use the ‘image’ panel field type to set a cover image but I’m simply experimenting right now.
When you sort images manually, the Panel will add a meta data file with a sort field. So to get the first image of these sorted images, you can do this:
If I wanted users to select a cover image using the image field type instead of the way I described above, what would be the best way to integrate that into my template?
i would like to get an cover_image to the Head of the Page and in the content the second image in the folder.
how can i get the picture its is not cover_image