7921 Posts in 1359 Topics by 933 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » FileDataObject different file types.
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 536 Views |
-
FileDataObject different file types.

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.
-
Re: FileDataObject different file types.

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.
| 536 Views | ||
|
Page:
1
|
Go to Top |

