Member
Member
breglis   2010-01-30, 14:44
#1

by default all subalbums get displayed before images in dynamic albums.
Is this correct ?

Can someone point me to the where this is decided in the code ?
I am looking for a way to reverse this

For my needs I would like to see the mix of subalbums & images in a dynamic album following the set sort order as a whole, not seperatedly grouped albums & images.
Any thoughts ?

Administrator
Administrator
acrylian   2010-01-30, 14:57
#2

You might want to review the theming tutorial about album.phpor just look at the theme files itself to see why albums come first. Keyword: loops. So as always you need to change your theme.

It is not possible to mix images and albums as they are printed by different loops. Of course it's just code so you surely could code a custom function who combines and sorts them mixed.

Member
Member
breglis   2010-01-30, 17:33
#3

thanks,
I did swap the 2 loops round in album.php but it did not have any effect...
the albums still come first...hmmm do I need to refresh metadata ?
I have played with the sortorders quite a bit... What does the refreshing do ?

Member
Member
breglis   2010-01-30, 17:37
#4

ha, copied the files onto the webserver in 2 different ways. the FTP client did set alter the datetime on the file the other did not. that way ZP has set the datetime of it.
Thanks

Administrator
Administrator
acrylian   2010-01-30, 17:52
#5

Meta data refresh updates the database entries with the meta data (EXIF/IPTC) that is within hte images. If there is for example no date it takes the date of the file time itself (sbillard is the expert on these parts).

Member
Member
sbillard   2010-01-30, 18:52
#6

Be aware that the zenphoto pagination presumes that albums come first. If you change that don't use page links.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.