Archive view starting from newest photos

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

Comments

  • acrylian Administrator, Developer
    That is an option of the printAllDates() function: http://www.zenphoto.org/documentation/zenphoto/_template-functions.php.html
  • 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/
  • acrylian Administrator, Developer
    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/
  • 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
  • The admin options gallery config page has the search page sort order settings.
  • 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.
  • acrylian Administrator, Developer
    You can set the sort order for every album on each album's edit page separatly.
  • 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
  • You need to install the newly released version 1.2 to have full control of the sort order including ascending and descending.
Sign In or Register to comment.