change order of albums

Admiror Gallery is free extension for Joomla! 1.6. Joomla! 1.7 and Joomla! 2.5 based websites. Admiror Gallery is all in one, a simple and instant solution for rendering image gallery from folder with images, but very flexible and adaptable.
Post Reply
Message
Author
Koudehand
Posts: 3
Joined: Tue Jul 29, 2014 5:18 am

change order of albums

#1 Post by Koudehand »

I've seen and tried the solutions for "reversed order" and they work, but it is not just what I would like.
I like to have the Albums in reversed order, but the pictures in this album by name.
The albums are named like this: "2012 example"; "20130623 exasmple"; 20131003 example"; etc.
The pictures are named like this: "example-001.jpg"; "example-002.jpg"; "example-003.jpg"; etc.

The solutions mentioned in this community not only put the albums in reversed order, but also the pictures in this album. So, I like to see the album of the latest activity first, but in this album I like to see the first picture taken of this activity first. (For example: The first album concerns pictures of the latest hiking trail, but in this album the first picture is from the start of the trail and not the finish.)

I hope someone can help me with this. Thanks in advance.

Admiror Gallery 5 - Fundraising Campaign

User avatar
Vasiljevski
Developer
Developer
Posts: 1258
Joined: Sat Aug 14, 2010 9:31 pm
Location: Novi Sad, Serbia
Contact:

Re: change order of albums

#2 Post by Vasiljevski »

There is a function : writeFolderThumb($default_folder_img, $thumbHeight) in agGallery.php it outputs the album thumbs.
So you can just reverse the order of $this->folders in that function by using standard PHP array_reverse function.
Now only albums will be in revers order, and images will be in the order you setup from the component, in your case by name.
Help Admiror Gallery become even better,
give us a review on JED

Post Reply