hmtl 5 audio player

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
jamski
New Member
New Member
Posts: 6
Joined: Sat Feb 18, 2012 4:05 pm

hmtl 5 audio player

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: hmtl 5 audio player

Post 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...
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: hmtl 5 audio player

Post by paulbaker »

Also don't forget

Code: Select all

{literal}to put javascript in literal tags like this{/literal}
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: hmtl 5 audio player

Post 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
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: hmtl 5 audio player

Post by paulbaker »

Ah, thank you Dr.CSS.
Post Reply

Return to “Modules/Add-Ons”