Re: ascending and descending order in Easy Folder Listing Pro

Home \ forums/reply \ Re: ascending and descending order in Easy Folder Listing Pro

Support Home Page Forums Joomla Software Easy Folder Listing Pro Plugin ascending and descending order in Easy Folder Listing Pro Re: ascending and descending order in Easy Folder Listing Pro

#1961
Michael Gilkes
Keymaster

@luchokike1. There are 3 datetime data that you can get from a file in PHP. I use the stat() function in PHP to get the file date time. With the stat function you can get:

  1. mtime: Date and time of last modification
  2. atime: Date and time file was last accessed
  3. ctime: Date and time the file’s status was changed… in other words… created time

Currently, the plugin is set to use mtime, which is the date and time of last modification. It seems as though you want to use something else instead of mtime. You will have to edit the code to do so. If you want to change it, go to somewhere around line 1249 and you will see:

just change the ‘mtime’ text there to either ‘atime’ or ‘ctime’.

Lastly, when specifying sortdirection, please use either ‘asc’ or ‘desc’. No caps.

Hope this helps.