Page 1 of 1

hmtl 5 audio player

Posted: Sat Apr 13, 2013 12:31 pm
by jamski
Hi I bought a html 5 audio player bit of code and uploaded it to the server and works fine in html page but trying to put into the cms site with a template is another mater.

I need to copy over code to put in the head and body tags.

Would I be correct that the html would go into the template?
so copy the template and put it into that.

Is the JavaScript ok in the head tag or does need to go into page metatags?

Been unable to find a module that can play mp3 files as a playlist and is cross browser compatible and can play on android and apple os.

This player does all that and has flash fallback but no joy getting it to work in the cms.

Any help would be very gratefully received

Jamski

Re: hmtl 5 audio player

Posted: Tue Apr 16, 2013 9:10 pm
by Dr.CSS
Add it to the template just like any other html page, if the code wants to be in the <head> at it there if it needs to be in the body add it there, CMSMS uses HTML just like flat files with the exception of {metadata},{menu}, {content}, etc. tags, you would use the page metadata if you only need it on that specific page...

Re: hmtl 5 audio player

Posted: Tue Apr 16, 2013 9:15 pm
by paulbaker
Also don't forget

Code: Select all

{literal}to put javascript in literal tags like this{/literal}

Re: hmtl 5 audio player

Posted: Thu Apr 25, 2013 10:12 pm
by Dr.CSS
As of 1.11 you no longer need to use {literal} for code that uses { } in it...

http://forum.cmsmadesimple.org/viewtopi ... =1&t=62146

Re: hmtl 5 audio player

Posted: Thu Apr 25, 2013 10:19 pm
by paulbaker
Ah, thank you Dr.CSS.