Page 1 of 1

Sorting folders or gallery's by customer/viewer?

Posted: 26 Mar 2026, 08:28
by elpd
Hi Kirl,

Is it possible to allow visitors to my website to choose how folders or photos are sorted? I usually set my folders and gallery's to shuffle or a custom order, but in some cases it could be useful for a visitor to sort them by date or by name, for example. Would this be possible via a URL parameter? Of course, another approach would also be fine.
Looking forward to hearing from you, and thanks in advance.

Best regards,
Erik

Re: Sorting folders or gallery's by customer/viewer?

Posted: 26 Mar 2026, 23:04
by mjau-mjau
elpd wrote:Is it possible to allow visitors to my website to choose how folders or photos are sorted?
Unfortunately this is not possible in X3, because the SORT order is assembled on the server, based on your sort settings. Pages are then cached when output. Sorting from the user would require galleries and folders to sort by Javascript, but X3 doesn't currently support this. In a future X4 yes probably.

My other app www.files.gallery does support user-sorting, but this app is quite different obviously.