Date: Wed, 10 May 2006 14:31:11 -0400
From: HECTOR SANTOS
To: DAVID DEMBSKI
Subject: RE: Sorting Files
Newsgroups: win.server.wish.list
Message-ID: <
1147285871.33.1147256016@winserver.com>
References: <
1147256016.33.0@winserver.com>
X-WcMsg-Attr: Rcvd
X-Mailer: Wildcat! Interactive Net Server v7.0.454.5
Lines: 39
On 5/10/06 6:13 AM, DAVID DEMBSKI wrote to HECTOR SANTOS:
Is it possilble to sort HTTP Flilelist by name or date ?
David
You mean the file client on the web?
It works by AREA then NAME, by calling:
GetFileRecByAreaName()
A while back someone wanted to sort by date too, but that require some
custom coding. It is slower to do it this way, but they wanted it so they
paid us to write a custom version of the file client.
If I recall, as a result of this work, the customer got a customed verison
of "html-list file" to do this sort exclusively, but for future versions we added a DATE (upload date) index to the database and a corresponding function:
GetFileRecByAreaDate()
So you can sort by Upload date, you have to modified the HTML-LIST
FILES.WCC and templates to add this option.
Not everone wants this so it wasn't built-in. And you're probably the 2nd
or 3rd person who has asked for it. But that doesn't mean if it wasn't
there, it won't be used :-)
Point is, we can do it now because the index function is there. What the customer got was a much slower version (ok by them because the database
wasn't that big) since it had to read each record and re-sort it on the fly.
I can jot this down to see if we can add it to the next version.
---
HLS
* Origin: Prison Board BBS Mesquite Tx //telnet.RDFIG.NET www. (1:124/5013)