ZenphotoCMS Forum
Random Images from Sub-directories - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Random Images from Sub-directories (/thread-12602.html)



Random Images from Sub-directories - steve-r - 2016-10-17

Hi,

I'm using the latest version of Zenphoto on a Debian server.
I have a folder containing several sub-folders but only one image at the level as the sub-folders.
Is it possible for the Random image shown at the top folder level to come from any of the sub-folders and not just the level below the folder?

Steve




Random Images from Sub-directories - fretzl - 2016-10-17

I assume you are referring to the backend.
Go to Admin > Options > Gallery > Gallery behavior and check [i]show subalbum thumbs[/i]




Random Images from Sub-directories - steve-r - 2016-10-17

Hi,
Thanks for the reply.
show subalbum thumbs was already checked.

Steve




Random Images from Sub-directories - fretzl - 2016-10-17

Hm...looks like you found a bug.




Random Images from Sub-directories - steve-r - 2016-10-17

Interesting.
Looking at my top-level folders (I separate my photos into years) I don't see thumbnails from any subfolders, only thumbnails of images directly below the folder - unless there are no images (only subfolders) in which case I do see subfolder random images)
Steve




Random Images from Sub-directories - acrylian - 2016-10-17

The "show subalbum thumbs" actually refers to the selector for manual selecting an album thumb.

Generally the automatic function searches on purpose on the album itself first. Only if it does not find anything it returns an image from the further sub albums. If you have a lot of sublevels or albums this might have a performances cost otherwise.

For performance reasons I also would generally recommend to set a fixed album thumb anyway. Unless you have precached everything.

Otherwise Zenphoto will need to process the thumb anytime a new one is chosen wich can slow down expecially on bigger sites.




Random Images from Sub-directories - fretzl - 2016-10-17

Yes, I can confirm that. We'll have to look into this.




Random Images from Sub-directories - steve-r - 2016-10-17

Thanks for the explanation.
Maybe if we could set a Max Depth. But then the Breadth could be quite wide as well.
Or limit the period that the random image changes.




Random Images from Sub-directories - acrylian - 2016-10-17

Again the selector with thumbs is for manual selection and has nothing to do with the random choice on page reload. The thumb selector will be replaced in the future anyway.

We'll take a look a depth limiting for random choice but I cannot promise anything. Not really any priority for us right now.




Random Images from Sub-directories - steve-r - 2016-10-18

Many thanks!! and keep up the fantastic work.