ZenphotoCMS Forum
Archive view starting from newest photos - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: Archive view starting from newest photos (/thread-3426.html)



Archive view starting from newest photos - mironb - 06-08-2008

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




Archive view starting from newest photos - acrylian - 06-08-2008

That is an option of the printAllDates() function: http://www.zenphoto.org/documentation/zenphoto/_template-functions.php.html




Archive view starting from newest photos - mironb - 06-08-2008

OK so I change in my archive.php:

to

and it's works great
Thanks very much
Miron
http://fotostacja.pl/




Archive view starting from newest photos - acrylian - 06-08-2008

Actually `` 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/




Archive view starting from newest photos - mironb - 15-08-2008

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




Archive view starting from newest photos - sbillard - 15-08-2008

The admin options gallery config page has the search page sort order settings.




Archive view starting from newest photos - mironb - 16-08-2008

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.




Archive view starting from newest photos - acrylian - 16-08-2008

You can set the sort order for every album on each album's edit page separatly.




Archive view starting from newest photos - mironb - 16-08-2008

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




Archive view starting from newest photos - sbillard - 16-08-2008

You need to install the newly released version 1.2 to have full control of the sort order including ascending and descending.