Jump to:

7938 Posts in 1541 Topics by 945 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Disable UploadFolderSelection

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 1069 Views
  • aleks
    Community Member
    7 Posts

    Disable UploadFolderSelection Link to this post

    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.

  • mirkosassetti
    Community Member
    20 Posts

    Re: Disable UploadFolderSelection Link to this post

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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.