Reodering album and image display oder on album.php

Hi All!

Got a question about reordering album and image display order on album.php

This is my current scenario:

Album1 : Created May1
Image1 : Created May2
Album2 : Created May3
Image2 : Created May4

Album.php displays this in this order when sorted by date.

Album1
Album2
Image1
Image2

But what I want is all images AND albums to be displayed in order created like so:

Album1
Image1
Album2
Image2

How can I achieve this? If someone could show me their code, that would be prefect !

Thanks!
- Fuge B

Comments

  • acrylian Administrator, Developer
    So image1 and image2 would be the images in album1 and album2?
  • fugeb Member
    No they are all uploaded into the 'Albums' folder in the following order:

    Album1 : Created May1
    Image1 : Created May2
    Album2 : Created May3
    Image2 : Created May4
  • acrylian Administrator, Developer
    You did not understand my question correctly: Is Image1 in Album1 so that you want to show the images within the albums directly on album.php?
  • fugeb Member
    No, all of them are directly in the 'albums' folder. Image 1 is not in Album 1,

    Both images and both albums are in the root 'albums' folder.
  • Images cannot be seen if they are in the root folder. They must be in an album.
  • fugeb Member
    Yes, all images are in the albums folder. Not the root folder... I may have used the word root incorrectly here. But I meant the root albums folder .... i.e. the main ''albums'' folder.
  • acrylian Administrator, Developer
    Images must be in an album which means a folder within the main `albums` folder.
  • fugeb Member
    wow ... we are having some serious communication problems here ...

    Okay how about this... these are the paths to my files and folders:

    Album1 : Created May1 : /zenphoto/albums/
    Image1 : Created May2 : /zenphoto/albums/image1.jpg
    Album2 : Created May3 : /zenphoto/albums/
    Image2 : Created May4 : /zenphoto/albums/image2.jpg

    Hope this clarifies things guys,
    Thanks!
    - Fuge
  • Ok. I presume you have a custom theme since the display you describe as current would not occur on any of the ZP themes. So you will have to modify your theme to change the order. Please review the themeing guide for how to create/modify themes.
Sign In or Register to comment.