Jump to:

5540 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Using FileIFrameField in the CMS

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

Page: 1 2
Go to End
Author Topic: 4395 Views
  • moloko_man
    Avatar
    Community Member
    72 Posts

    Re: Using FileIFrameField in the CMS Link to this post

    Try doing the following in your ss file and see what is outputted.

    <% control SampleTrack %>
    $Debug
    <% end_control %>

    If I remember right I think I had to use something like $SampleTrack.URL to get it to work correctly.

  • marc79
    Avatar
    Community Member
    65 Posts

    Re: Using FileIFrameField in the CMS Link to this post

    Thanks for the reply again. I have added in the $Debug and get the below response:

    Database record: File

    * ClassName:

    File

    * Created:

    2011-04-14 16:52:43

    * LastEdited:

    2011-04-14 16:52:43

    * Name:

    air.mp3

    * Title:

    air

    * Filename:

    assets/music/air.mp3

    * Sort:

    0

    * ParentID:

    16

    * OwnerID:

    1

    * ID:

    23

    * RecordClassName:

    File

    Using $SampleTrack.URL seems to be getting me a step closer, the controls flash up and the code looks right in Firebug, but still not playing.

  • marc79
    Avatar
    Community Member
    65 Posts

    Re: Using FileIFrameField in the CMS Link to this post

    Scratch that. It's FF issue, need an ogg. Working fine in Safari and Chrome.

    Thanks for all your help.

    4395 Views
Page: 1 2
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.