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.

Customising the CMS /

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

File browser?


Go to End


2 Posts   1673 Views

Avatar
DanStephenson

Community Member, 116 Posts

26 March 2009 at 10:08am

Edited: 27/03/2009 4:18am

Hi guys,

I am onto my second SilverStripe site (the first one is now in the Showcase if anyone wants to see it). Anyways, what I am trying to do now, is to make a site where a user will upload their FLV video of a product, and then I'll display these videos inside of a lightbox, using the Longtail video player.

I want the user to be able to upload their video, and then from the CMS, when the user is editing a specific product page, they can select the uploaded video from a "file browser" like interface, that just shows them the files inside a "video" folder I creates inside the assets folder (or better yet, upload directly through the editing interface, like the Image field). Then they select one of these files, and the variable becomes a filename, so I can link to it. Similar to how the Image field works.

How can I go about setting this up in the CMS?

Avatar
DanStephenson

Community Member, 116 Posts

27 March 2009 at 4:58am

Edited: 27/03/2009 7:40am

I solved my own problem. I used this recipe http://doc.silverstripe.org/doku.php?id=recipies:adding-a-file-to-a-page

I got some errors when I used the SWFUploader (see screenshot), so I'll use File for now.