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 |
Jump to:
Description
It would be nice to have a default sort option for the module (filename, filesize or description).

#1
See http://drupal.org/node/314256
#2
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
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
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.htmlIndexOptions FancyIndexing DescriptionWidth=* NameWidth=* SuppressHTMLPreamble
IndexOrderDefault Descending Date
HeaderName readme.html
ReadmeName footer.html
...