I am having trouble getting this to work. We have MODx 0.9.1and I ran a diff between aNoble’s hacked files and what’s on our server and the files matched (except for a few new uploadable filetypes we added). So I assume that means the user resource url should work out-of-the-box for MODx 0.9.1, but I can’t get it to work.
I tried setting Resource URL to /assets/usertest/ and I tried creating the folder and adding an images sub-folder, but I could not get the FCKEditor Resource Browser to go the correct location (when adding an image). It seems to always go straight to /assets/images/.
Is my user folder in the right place? Do I need any other sub-folders? Or, are there any other settings I may need to change?
Thanks,
Mike
PS My other thought is to have a per-document or per sub-tree template variable that specifies the directory and possibly modify the FCKEditor plugin to add the following to FCKImageBrowserURL.
var assetsFolderTV = $modx->getTemplateVar('assetsFolder', '*', $modx->documentObject['id'], 1);
var FCKImageBrowserURL = '...&CurrentFolder=' . assetsFolderTV;
If [*assetsFolder*] doesn’t exist on that page it could check it’s ancestors until it finds one or use the default if it doesn’t find one. This may actually be a better solution for our site than a user resource url for users who have access to multiple sections or multiple users who share access to the same sections. But, it might be a little harder to implement and maintain.