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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

Using FileIFrameField in the CMS


Go to End


11 Posts   6261 Views

Avatar
moloko_man

Community Member, 72 Posts

15 April 2011 at 4:46am

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.

Avatar
marc79

Community Member, 65 Posts

15 April 2011 at 5:05am

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.

Avatar
marc79

Community Member, 65 Posts

15 April 2011 at 5:10am

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

Thanks for all your help.

Go to Top