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

FileDataObject different file types.


Reply


2 Posts   651 Views

Avatar
Matty Balaam

Community Member, 69 Posts

17 June 2010 at 9:30pm

I am attempting to make a module based around JPlayer (quite slowly as it goes, I'm stuck with how to pull info from the database into an array). See here for the background: http://silverstripe.org/general-questions/show/286452#post286452

I have another issue at the moment. JPlayer can play either MP3, or OGG files and will select which is the best option itself (MP3 on some browsers relies on a Flash player, and other browsers don't play OGG files). I am wondering Is there some way of linking both MP3 and OGG files into one DataObject?

Thanks.

Avatar
Matty Balaam

Community Member, 69 Posts

22 June 2010 at 2:21am

OK, was really easy when I just tried it, I just added a new 'File' called Ogg in the $has_one array, and then added the new fields into the popup. Don't know why I thought it would be any harder.

Great stuff.