Is there an option to set the browse path at runtime?

When I call window.open(....) when a person is changing a file It will automatically open to my root, which is fine, but what I want is for it to open relative to the file that they are changing, in other words:

User clicks "change"
imce opens
based on previous file path, imce opens at the base dir of that file

I can get all of this info to supply to imce at runtime, just don't see an options for setting this when I open the window?

Comments

ufku’s picture

You may try setting the "dir" keyword in the URL.
/imce?dir=images -> opens file_sytem_path/images
/imce?dir=. -> opens file_sytem_path

If you want to change the directory again after IMCE window loads, you can use the method imce.navigate(dir) in that window.

jmather’s picture

Status: Active » Closed (fixed)

That worked, thanks!