Here is the fix from my question on the same thing.

Cheers, Natalie

[EMAIL PROTECTED] wrote:
>
> Hi there,
>
> Using the option to right click on a file in the tree to insert a link to it
> within the body of an html page, it inserts /farcry/ before the download.cfm
> link.
> When doing the same thing for a related link to a file, ie right-clicking on
the
> file in the tree and choosing insert for a related link, it inserts the
correct
> link without /farcry/.

ummm, this is a bug :)

> How can I fix the problem?


Edit farcry_core/tags/navajo/overview.cfm

about line 1246:

case "dmFile":
           p.insertHTML( "<a
href='#application.url.farcry#/download.cfm?DownloadFile="+lastSelectedId+"'
target='_blank'>"+theNode['TITLE']+"</a>" );
           break;

to

case "dmFile":
           p.insertHTML( "<a
href='#application.url.webroot#/download.cfm?DownloadFile="+lastSelectedId+"'
target='_blank'>"+theNode['TITLE']+"</a>" );
           break;


the problem was the application.url.farcry, should be
application.url.webroot.

This will be fixed for the next release.

-Brendan
http://farcry.daemon.com.au



                                                                                       
                                                            
                    "Tim McAuliffe"                                                    
                                                            
                    <[EMAIL PROTECTED]>              To:     "FarCry Developers" 
<[EMAIL PROTECTED]>                            
                    Sent by:                               cc:                         
                                                            
                    [EMAIL PROTECTED]       Subject:     [farcry-dev] File linking 
bug?                                             
                    mon.com.au                                                         
                                                            
                                                                                       
                                                            
                                                                                       
                                                            
                    17/07/03 11:13 AM                                                  
                                                            
                    Please respond to "FarCry                                          
                                                            
                    Developers"                                                        
                                                            
                                                                                       
                                                            
                                                                                       
                                                            




Can anyone confirm this bug with links to files?

If you upload a file to the files folder for a site, then INSERT it into
the body of a dmHTML object it should create a link to:
<a href='#application.url.webroot#/download.cfm?...
but it currently creates a link to:
<a href='#application.url.farcry#/download.cfm?...

The code is in farcry_core\tags\navajo\overview.cfm line 1247

Cheers

Tim

---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]





---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to