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.

Customising the CMS /

File browser?


Reply


2 Posts   1026 Views

Avatar
DanStephenson

Community Member, 115 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, 115 Posts

27 March 2009 at 4:58am

Edited: 27/03/2009 7:40am

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

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