It is currently Mon Dec 18, 2017 8:40 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: change order of albums
PostPosted: Tue Jul 29, 2014 5:51 am 
Offline

Joined: Tue Jul 29, 2014 5:18 am
Posts: 3
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.


Top
 Profile  
 
 Post subject: change order of albums
PostPosted: Tue Jul 29, 2014 5:51 am 
Top  
PostPosted: Sun Aug 17, 2014 1:51 am 
Offline
Developer
Developer
User avatar

Joined: Sat Aug 14, 2010 9:31 pm
Posts: 1241
Location: Novi Sad, Serbia
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

 


All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

This is the official Admiror Joomla! Community Forum. You are welcome to join the Admiror Joomla! Community. All Admiror Joomla! Extensions Users, Joomla! Developers, PHP or mySQL Developers are welcome to support & contribute to Admiror Joomla! Projects.

Joomla! is a free and open source content management system (CMS) for publishing content on the World Wide Web and intranets. With a vibrant volunteer community, user-friendly features and plenty of power, Joomla is perfect for your website!

Joomla! is written in PHP, uses object-oriented programming (OOP) techniques and software patterns, stores data in a MySQL database, and includes features such as page caching, RSS feeds, printable versions of pages, news flashes, blogs, polls, search, and support for language internationalization.

Joomla! is the property of Open Source Matters, Inc. All rights reserved. Read more about Joomla! at http://www.joomla.org/.


Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group