Anybody help with this?
So far I have come up with doing a comma seperated selection of folder I do want shown on the
Configuration-ViewPaths attribute. However, there seems to be a bug with this as follows:
If I have something like Configuration-ViewPaths="~/Public, ~/Events", it appears that this js code - args.get_item().get_url(); will return two different kinds of paths depending on what the user does! If I click on a file in a ~/Public sub folder, get_url() returns this: ~/Public/Images/file.jpg, but if I click on a file in a subfolder in ~/Events, get_url() returns the absolute path i.e. iiswebsitename/Events/Images/filename.jpg. I'm thinking this might be a bug?
This is too inconsistant to do anything with the string returned! If I set Configuration-ViewPaths back to a non-comma separated selection i.e "~/", then there is no problem with the selection returned by get_url()..its always the absolute path, BUT then I'm not hiding certain folders I need to hide. The user can see all kinds of folders they do not need to.
Any help?