Member
Member
mironb   2008-08-06, 10:51
#1
Hi
How can I change order of displaying photos in archive view to see on the top of the page new photos (latest) not oldest. I just want to change order of viewed images.
It is hard to find latest photos If I have much of them in one month. You can see it in my home page:
http://fotostacja.pl
http://fotostacja.pl/galeria/?p=archive
Best regards
Administrator
Administrator
acrylian   2008-08-06, 12:34
#2
That is an option of the printAllDates() function: http://www.zenphoto.org/documentation/zenphoto/_template-functions.php.html
Member
Member
mironb   2008-08-06, 13:32
#3
OK so I change in my archive.php:

<?php printAllDates(); ?>

to

<?php printAllDates( $class = 'archive', $yearid = 'year', $monthid = 'month', $order = 'desc'); ?>

and it's works great
Thanks very much
Miron
http://fotostacja.pl/
Administrator
Administrator
acrylian   2008-08-06, 14:33
#4
Actually `<?php printAllDates( 'archive', 'year', 'month', 'desc'); ?>` would be enough, you don't need to write the variables. More about the functions guide here: http://www.zenphoto.org/2008/04/how-to-read-the-zenphoto-functions-guide/
Member
Member
mironb   2008-08-15, 10:11
#5
One thing more. How can I change order of displaying photos in search page ? The same like in archive to see on the top latest photos ?

Miron
http://fotostacja.pl/Portfolio
Member
Member
sbillard   2008-08-15, 15:36
#6
The admin options gallery config page has the search page sort order settings.
Member
Member
mironb   2008-08-16, 10:00
#7
Thanks
I change in
options/image display/Sort images by: date and descending order.
but
now in all albums I have descending order of photos and I can't change this :(
I have 1.1.7 version of zenphoto.
Administrator
Administrator
acrylian   2008-08-16, 12:47
#8
You can set the sort order for every album on each album's edit page separatly.
Member
Member
mironb   2008-08-16, 13:35
#9
I know that but that function does not work properly. I can't uncheck descending order in it. :(

Please try this:
1. In options/image display/Sort
choose:
images by date and descending order

2. Go to edit/Your album/Sort images by:
filename
and try to uncheck "descending"

When I save it it's still checked
Member
Member
sbillard   2008-08-16, 15:24
#10
You need to install the newly released version 1.2 to have full control of the sort order including ascending and descending.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.