Closed (fixed)
Project:
IMCE
Version:
6.x-1.2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2009 at 19:10 UTC
Updated:
29 Sep 2009 at 15:05 UTC
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
Comment #1
ufku commentedYou 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.
Comment #2
jmather commentedThat worked, thanks!