Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Disable UploadFolderSelection


2 Posts   1084 Views


8 February 2011 at 2:57pm (Last edited: 8 February 2011 2:58pm), Community Member, 7 Posts

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.


10 February 2011 at 5:15am Community Member, 20 Posts

I was going to do a post about this ...