Thw way i have my user contributed files is as follows:
sites/default/files/user_files/users/[author-name]/[node-type]/blah blah blah and so on...
so basically the users files are all in
sites/default/files/user_files/users/[author-name]
and below. at this point in the editors interface the user sees the "/sites/default/files" path at the top, along with "user_files/users". I would like to hide all the directories that is above what the user is allowed to view. so the topmost level of directories the user can see in this case should be "[author-name]". I have attached 2 images, the first is what it looks like, and the second is a gimped version of how i would like it to look.
Comment | File | Size | Author |
---|---|---|---|
#5 | imce_root_text_patch.txt | 2.53 KB | ufku |
should-look-like.png | 7.75 KB | luckysmack | |
what-it-looks-like.png | 8.82 KB | luckysmack |
Comments
Comment #1
Phliplip CreditAttribution: Phliplip commentedSubscribe
Comment #2
halver CreditAttribution: halver commentedYes, this would be handy. Might be a helpful security precaution as well.
Comment #3
3dloco CreditAttribution: 3dloco commentedIt is very well a security precaution! subscribing
[EDIT] Can this be done with the advanced integration and hooks provided?
Thanks,
KH
Comment #4
luckysmack CreditAttribution: luckysmack commentedYes i have been waiting for an update on whether this is possible for a while now. since im using 1.3 im updating it to the newest version and have re-titled it to a little more descriptive.
Comment #5
ufku CreditAttribution: ufku commentedThe patch allows alternate text for the root directory, which can be set at admin/settings/imce under common settings.
It does not hide any directories of any level.
Comment #6
izmeez CreditAttribution: izmeez commentedsubscribing
Comment #7
ufku CreditAttribution: ufku commentedthere is now theme('imce_root_text') function waiting to be overridden.