Jump to:

7938 Posts in 1541 Topics by 945 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » FileDataObject different file types.

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 640 Views
  • Matty Balaam
    Avatar
    Community Member
    69 Posts

    FileDataObject different file types. Link to this post

    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.

  • Matty Balaam
    Avatar
    Community Member
    69 Posts

    Re: FileDataObject different file types. Link to this post

    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.

    640 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.