7938 Posts in 1541 Topics by 945 members
|Go to End|
16 September 2010 at 4:09am
couple of questions:
1) how do i enable "drag and drop re-ordering" on the MP3/ Audio tab of the CMS?
2) is it possible to read the file length and display it in the front end? I need a call that i can place in my .XML template...
16 September 2010 at 4:37am
You can enable drag-and-drop by adding to your _config.php:
and run /dev/build
For the file size, you can use $FileObject.Size.
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com
16 September 2010 at 4:39am
amazing. every time!
to clarify, will $FileObject.Size show the length of the audio? not the size in MB?
16 September 2010 at 5:00am
$FileObject.Size did nothing.
and $File.Size just shows the file size in MB
what should i try next?
P.S - the drag and drop worked like a dream!
16 September 2010 at 5:07am
hmmmm... there must be a way?
otherwise how do all the other audio player in the world show play times? i dont think its done manually...
plus my player shows the play time next to the "slide bar" as in... 00:07 of 03:24
so its working it out somehow! lol i just want it to appear in the XML feed so that the player can show the time next to the track before you play it. see here: http://www.silentrepublic.com/listen/
|Go to Top|