Announcement

  •  » Requests
  •  » Set random sort order as default for an album

#1 2022-08-14 00:35:08

Dave_G
Member
2019-03-24
3

Set random sort order as default for an album

Hello,

I have an album with a few hundred photos, which I would like to display in a random order. Assuming that users will not bother to page through the album, I would like to have them see a different selection of images each time they open up the album, so they're not seeing the same 15 images each time.

I can't figure out how to accomplish this, or if it's even possible. Selecting Photos Sort Order from the album admin pages lets me sort by:
- file name
- photo title
- date created
- date posted
- rating score
- visits
- numeric identifier
- manual

But not randomly.

However, when I visit the site as a viewer, the sort order pull-down menu lets me select:
- default
- photo title
- date created
- date posted
- random

So it appears that users can specify a random sort order, but admins cannot make it the default. Is that right? If that's the case, is it possible to add random sort order as one of the admin options?

Piwigo 12.3.0
Operating system: Linux
PHP: 7.3.27 (Show info) [2022-08-13 18:31:53]
MySQL: 5.5.5-10.6.4-MariaDB [2022-08-13 18:31:53]
Graphics Library: External ImageMagick 7.1.0-45

Piwigo URL: https://www.daveguertin.net/index.php?/category/all

Offline

 

#2 2022-08-14 08:55:11

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13573

Re: Set random sort order as default for an album

Hi Dave_G,

This is the first time I see this "random" option on the gallery side to sort photos. It seems to be specific to the Bootstrap Darkroom theme. I have no idea how it works (I would need to dive into the code to understand).

In Piwigo administration, you can't ask for a "random sort order". Sorry.

Offline

 
  •  » Requests
  •  » Set random sort order as default for an album

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact