Page 1 of 1

Problem to add Javascript code between </__body>...<__body>

Posted: Sat Nov 17, 2012 4:02 pm
by designpromote
1. How can I add Javascript code into content please?
When I added Javascript code <__script__>...</__script> with content editor (between </__body>..<__body>), after I saved it, it changed to <!-- ... -->.

2. How can I change header and footer file?
I only have access to mydomain.com/admin.

Thanks

Re: Problem to add Javascript code between </__body>...<__body>

Posted: Sat Nov 17, 2012 7:21 pm
by Jo Morg
designpromote wrote:I only have access to mydomain.com/admin.
And even then you might not have permissions to edit any templates, if it wasn't you who installed CMSMS in the 1st place...
But if you have enough permissions then read through this:
http://docs.cmsmadesimple.org/layout/cr ... n-template.
Also if you want to use JavaScript on your templates as you say, you need to wrap them like this

Code: Select all

{literal}..... your JavaScript  code ....{/literal}