Page 1 of 1
Javascript in templates
Posted: Wed Aug 01, 2007 3:37 pm
by fuquam
I searched the forum but couldn't find answers. I want to ad some simple javascript to my template but I get error messages. A similar thing happened when I tried adding PHP but I figured out how to create a user defined tag and ad the PHP that way. Everything works fine with PHP now. Javascript isn't working out the same way. Any ideas?
Thanks.
Re: Javascript in templates
Posted: Wed Aug 01, 2007 4:19 pm
by wuschel
{literal} your javascript {/literal}
Re: Javascript in templates
Posted: Sat Aug 04, 2007 4:28 pm
by mesaverde
If you want the script in the header section of the webpage you can include a tag like this
in the metatag section on the add/edit content page. You'll find that under the option tab. This will put the script tag in the header of your page and will link to your script file.