7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Disable UploadFolderSelection
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 935 Views |
-
Disable UploadFolderSelection

8 February 2011 at 2:57pm Last edited: 8 February 2011 2:58pm
As far as I can see, there is no way to disable 'allowUploadFolderSelection' in the FileDataObjectManager class. The default init value is 'true' and the allowUploadFolderSelection() method sets it to true as well.
Locally, I have changed the allowUploadFolderSelection() method to
public function allowUploadFolderSelection($allow = true) {
$this->allowUploadFolderSelection = $allow;
}and this seems to do the job. Would be great if you could implement something similar. I basically just don't want the editors to fool around with the folders.
-
Re: Disable UploadFolderSelection

10 February 2011 at 5:15am
Agree.
I was going to do a post about this ...
| 935 Views | ||
|
Page:
1
|
Go to Top |


