Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
Hi there,
Does anyone know of a way to sort/display images in an album as "random" instead of the presets that are listed in the album settings?
Cheers,
Chumby
Offline
there is a sample function in the phplugins-pangolin-sample.php file starting on line 510 (of an unaltered file) that has to do with creating a custom image loop for albums.
It doesn't show anything about randomizing the loop, but there is a php rand() function that might be useful: https://www.w3schools.com/php/func_math_rand.asp
You'd have to know some php coding. Maybe something that finds the number of photos then uses the rand() function to display them randomly.
Matt or Ben or Daniel will likely know more, but it's a place to start.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
OK great, thanks Rod. Wil check that out.
Would be kind of cool to let the user sort the photo album by a drop down with different options as well.
Cheers
Chumby
Offline
OK great, thanks Rod. Wil check that out.
Would be kind of cool to let the user sort the photo album by a drop down with different options as well.
Cheers
Chumby
You can do that already, but there isn’t a random option.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Ok, nice one. Where is that option, Rod?
Cheers
Chumby
Offline
It’s in the album setup under the base settings tab
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Hi rod,
Yep got that one... I was talking about something a user may be able to use on the album homepage - not something in he backlight admin there.
I dont think that is possible at the moment?
Cheers
Chumby
Offline
Not sure what you mean by the “album homepage.”
You can set the order on a per album (photo order) or per album set (album order) basis in Lightroom or in Backlight.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Hi Rod,
I am thinking about the web user being able to filter the order via a publicly viewed drop down or the like on the album.
Not admins that have access to backlight or lightroom... just thinking about user customization here. All good if not available.. just a thought...
Cheers
Chumby
Offline
Ah. I see what you mean now.
That’s not an option, though it might be possible using that custom loop function example in phplugins.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Pages: 1