Ordering gallery images based on the order they are clicked

Customer request, when uploading images to apps like facebook, it numbers the images and displays them in the same order.

Is it possible to achieve this on kirby as my client will be managing his site entirely from his iPhone and doesn’t want to re order 18 images every time he uploads.

I am aware the current ordering is alphabetical but iphones just make random file names so this is not useful for him.

Thanks - Josh

You could either rename the files and prepend a number in a file.create:after hook or add the sorting number in the sort field with the same hook.

1 Like