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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Uploadify - Prevent folder selection and hide "Choose existing"


Go to End


3 Posts   2111 Views

Avatar
DesignCollective

Community Member, 66 Posts

20 February 2011 at 7:52pm

Edited: 20/02/2011 7:53pm

I want to set dynamically a fixed upload folder for the upload fields - and that's okay. However, I would like to hide the folder dropdown and the choice of "Choose Existing" as I have many users on the platform who access their respective files and I don't even want them seeing what is in the assets folders. I want the files only to be uploaded or removed if they are changed / removed in the File/ImageDataobjectmanagers.

How can I go about doing that? I also can't find documentation on allowFolderSelection.

Thanks.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

23 February 2011 at 4:19am

You can copy the files

/uploadify/templates/UploadifyFieldBackend.ss
/uploadify/templates/MultipleUploadifyFieldBackend.ss

to /your_theme/templates/

And remove the tabs from the HTML. Run a flush=1 and you should be good.

Avatar
DesignCollective

Community Member, 66 Posts

23 February 2011 at 7:10am

I just started with that, yes. Thanks a bunch for this!