Page 1 of 1
Reverse order joomla 2.5 admiror gallery 4.5
Posted: Sat Apr 12, 2014 11:01 am
by ledkam
Hi, how i can change sorting directories and photo images by name? Default sorting (arrange) is bad for me because first item is 1,2,3,4,5,6,7,8,9 (i want sorting reverse --- 9,8,7,6,5,4,3,2,1). I need sorting items with name: year-month-day-somethink and first item must be the youngest.
Very much for any idea.
.........Reverse order joomla 2.5 admiror gallery 4.5
Re: Reverse order joomla 2.5 admiror gallery 4.5
Posted: Tue Apr 22, 2014 6:51 pm
by Vasiljevski
You can change the way the list is ordered in agHelper.php, function:
Code: Select all
public static function array_sorting($array,$targetFolder,$arrange) {
Change : return $array; to
Re: Reverse order joomla 2.5 admiror gallery 4.5
Posted: Tue Apr 22, 2014 6:58 pm
by ledkam
Thank you for your answer, i try it.
Re: Reverse order joomla 2.5 admiror gallery 4.5
Posted: Sat Jul 05, 2014 7:27 pm
by kolesnikoff
Vasiljevski wrote:You can change the way the list is ordered in agHelper.php, function:
Code: Select all
public static function array_sorting($array,$targetFolder,$arrange) {
Change : return $array; to
Hello... I have the same situation... I need change the order of albums names... default is ascending... i need descendigng...
i find this code in agHelper.php... but i do not understand what i must insert or replace...
can you explain? thank you very much!
Re: Reverse order joomla 2.5 admiror gallery 4.5
Posted: Sun Aug 17, 2014 2:27 am
by Vasiljevski
Well I'm not sure what is the default ordering, but anyway you just need to sort the image array the way you need before the gallery is rendered.
In your case, you could set ordering by name in the settings, and just apply the reverse order like explained above. This way you will get opposite ordering, in you case descending.