Sort by file extension in CFDIRECTORY

2014-07-30 Thread Richard Colman
Can anyone point to an easy way to sort the display of CFDIRECTORY filenames by file extension, and then perhaps by name? -- Rick. ~| Order the Adobe Coldfusion Anthology now!

RE: Sort by file extension in CFDIRECTORY

2014-07-30 Thread Robert Harrison
Interesting... You might be able to use a query of queries after you gotten the file list... Or you might recourse the directory to get the extension then do a separate query on each extension. That's an interesting question... I'm going to watch for what others say. Robert Harrison

Handling 404 errors by Coldfusion

2014-07-30 Thread Claude Schnéegans
Hi, I'm havin someting weird hapening on mt CF 9 / Windows Web Server 2008 / IIS 7.5 My site is returning an error 404 status when some requested page does'nt exists. For instance http://myDomain.com/index.cfm?p=pageid=21 return normaly page 21 which exists, but

Re: Handling 404 errors by Coldfusion

2014-07-30 Thread Jon Clausen
Claude, This should be just a setting that needs to be adjusting in IIS: IIS Manager [Site] Error Pages 404 - Uncheck “Insert content from static file in to the error response” and/or reconfigure as fits your need. HTH, Jon On Jul 30, 2014, at 2:49 PM, Claude Schnéegans

Re: Handling 404 errors by Coldfusion

2014-07-30 Thread Claude Schnéegans
IIS Manager [Site] Error Pages 404 - Uncheck “Insert content from static file in to the error response” and/or reconfigure as fits your need. Ok, I've seen that, but the problem is that I still have to give a URL to be executed or Respond with 302 redirect. In fact I just need IIS to do

Re: Handling 404 errors by Coldfusion

2014-07-30 Thread Jon Clausen
You have two options that I can see: 1) Point the static content option to an empty file (not a very good option for your static content 404’s) 2) Remove the 404 handler completely from the Error Pages and use your web.config to handle 404’s for static content and pass through existing

Re: Sort by file extension in CFDIRECTORY

2014-07-30 Thread Nick Voss
I'd look at putting it into a custom query object and using queries of queries. So loop over the cfdirectory output inserting into a new query object that has file extension as a column and use a call like listGetAt(filename,listLen(filename,.)-1,.) to retrieve the extension. Once it's

Re: Sort by file extension in CFDIRECTORY

2014-07-30 Thread Dave Watts
I'd look at putting it into a custom query object and using queries of queries. So loop over the cfdirectory output inserting into a new query object that has file extension as a column and use a call like (filename,listLen(filename,.)-1,.) to retrieve the extension. Once it's stored

Re: Sort by file extension in CFDIRECTORY

2014-07-30 Thread Claude Schnéegans
I finally solved the problem this way: 1. if the page nb. does not exists: cfheader statuscode=404 statustext=Page not found CFABORT 2. in IIS I defined a URL to be called in case of error 404, this page displays a friendly message, then it also has to declare cfheader statuscode=404

Re: Sort by file extension in CFDIRECTORY

2014-07-30 Thread Andrew Scott
I think you replied to the wrong thread there Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/113032480415921517411 On Thu, Jul 31, 2014 at 11:49 AM, wrote: I finally solved the problem this way: 1. if the page nb. does not exists:

Re: Sort by file extension in CFDIRECTORY

2014-07-30 Thread Claude Schnéegans
I think you replied to the wrong thread there Ooops... sorry ;-) ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: