Yep, that did the trick. Thanks Brendan.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Brendan Sisson Sent: Wednesday, 3 March 2004 11:07 AM To: FarCry Developers Subject: [farcry-dev] Re: Verity search results for DOC and PDF files Andrew Mercer wrote: > I have configured Verity to search for *.doc and *.pdf files. > 98% <a > href="/demo/index.cfm?objectid=\\devBox\farcry\demo\www\files\FCAdmin_userguide2001.pdf">Microsoft > > Word - FCAdmin_userguide200.doc</a> > > So two questions: > Why isnt the external file being opened? > Why is it showing the PDF as MS word? > > Actually three questions, how do I make it work? You need to add a check in your search results page to see if the key is a farcry object or external link. Something like this should do the trick: <!--- check for extFile or farcry object ---> <cfif left(key,2) eq "\\"> <a href="#application.url.webroot#/download.cfm?extFile=#key#">#qResults.title#</a> <cfelse> <!--- farcry object ---> <a href="#application.url.conjurer#?objectid=#key#">#qResults.title#</a> </cfif> -Brendan http://farcry.daemon.com.au --- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004 --- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
