Default sort option

clauded - September 2, 2008 - 02:08
Project:Filebrowser
Version:6.x-2.x-dev
Component:Administrative Interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

It would be nice to have a default sort option for the module (filename, filesize or description).

#1

macko - December 18, 2008 - 02:11

#2

Anders Östberg - May 18, 2009 - 20:44

Or maybe an initial sort order as a setting for the node.

I think there may be a potential problem here though since Filebrowser uses column names in the URL; for multi-language sites where you can switch languages on the fly it might be better to use column number instead of column name since the name is translated when changing languages.

#3

jbarns - October 6, 2009 - 17:45

can't seem to find the answer on how to sort a column by default (want to sort by modified date), was this feature added in rc10?

#4

macko - November 9, 2009 - 09:58

On this page

http://www.framsticks.com/dev/files

we use the following .htaccess file to sort by "last modified" date and remove the default footer that displays the number of files and their total size:

IndexIgnore .. .htaccess readme.html foot.html
IndexOptions FancyIndexing DescriptionWidth=* NameWidth=* SuppressHTMLPreamble
IndexOrderDefault Descending Date
HeaderName  readme.html
ReadmeName  footer.html
...

 
 

Drupal is a registered trademark of Dries Buytaert.