#233 allow specifying file urls in connector\'s xml input

Version 2.x
closed
Editor (144)
5
2006-09-23
2006-03-30
Pent
No

it's a trivial change that allows specifying an url for
each file instead of using sCurrentFolderUrl + sFileName
it's useful when the "filesystem" is in a db and not
using traditional file paths (/folder/.../file) and/or
the displayed filename is different from the url
it's completely optional and doesn't affect current users

in
"/editor/filemanager/browser/default/frmresourceslist.html"
in function "GetFoldersAndFilesCallBack" change the
last line from "oListManager.AddFile( sFileName,
sCurrentFolderUrl + sFileName, sFileSize ) ;" to "
var oFileUrlNode =
oNodes[i].attributes.getNamedItem('url');
var sFileUrl = oFileUrlNode != null ?
oFileUrlNode.value : sCurrentFolderUrl + sFileName;
oListManager.AddFile( sFileName, sFileUrl, sFileSize ) ;
"

the only other thing that would need to be changed
would be the documentation wiki...

Discussion

  • Frederico Caldeira Knabben

    • assigned_to: nobody --> fredck
     
  • Frederico Caldeira Knabben

    • summary: allow specifying file urls in connector's xml input --> allow specifying file urls in connector\'s xml input
    • status: open --> closed
     
  • Frederico Caldeira Knabben

    Logged In: YES
    user_id=572424

    Hi,

    This patch, or a similar implementation, has been included in
    FCKeditor and has been committed in the SVN. It will be available
    in the next release.

    For more information about the FCKeditor SVN system, please use
    the following URL:
    http://wiki.fckeditor.net/SVN

    Best regards,
    Frederico Caldeira Knabben
    ----
    http://www.fckeditor.net
    "Support Open Source Software"

    PS.: This is a canned response.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks