[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 420
  • Last Modified:

FCKeditor: browsing images and folders

We're using FCKeditor as html-editor on our website. I would like to be able to use the image browser. I can't figure out how to get it to work. It seems like the image browser needs an xml-file with data about files and folders. That's not the problem.

I believe the image browser takes arguments via the url. It takes the form:

?Command=CommandName&Type=ResourceType&CurrentFolder=FolderPath&ServerPath=ServerPath

Command: GetFoldersAndFiles
Type: Image
CurrentFolder: ?
ServerPath: ?

It's not clear to me what is needed for currentfolder and serverpath. Then the xml-file has a name, so shouldn't that be used somewhere? Or am I completely on the wrong track here?
0
grexx
Asked:
grexx
1 Solution
 
GarveCommented:
The browser is set to use a specific folder in the root of your domain, so if you  don't have it already create

userfiles/image/

You can also create the directory

userfiles/file/

which will hold non-image documents to link to.

I'm sure it can be configured to use a different folder, but I haven't been able to work out how. I rewrote the browser to work with my site structure instead.
0
 
grexxAuthor Commented:
I got it all working. We're using jsp, and the serverpath and currentfolder parameters are not implemented in the connector.

In php I only got the serverpath parameter working. There the serverpath is used like: &ServerPath=/folder1/sub2/etc/. This will display the images from www.yourdomain.com/folder1/sub2/etc/Images/ (idem for Files etc).

The currentfolder parameter should be the folder inside the Images folder, but for some reason that's not working here.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now