Hi,

I am making a site to interface with an already existant file structure. I'm looking to have a text field containing the path to a single file/directory. Can IMCE help? Specifically, I need to

1) Have only the path to the file/directory returned, not a link or anything to it. I'm sure this can be done, I just need help to figure out how
2) Select a directory itself. So far I've only been able to figure out how to select a file.

Thanks,
Austin

Comments

ufku’s picture

See integration methods in the README.txt
1) The file object that IMCE returns to sendto callback contains relpath which is the path relative to the file directory path. Note that it is url-encoded.
2) You need to define a custom button (see imce.opAdd() method) by using advanced integration. The active directory can be accessed by imce.conf.dir (relative to the root)

ufku’s picture

Status: Active » Closed (fixed)