I am exploring Zotonic and I am trying to create a page containing both HTML and Javascript (within ). Yet, when I save my page, the Javascript is removed and not saved.
Is there any way to create a simple HTML page with Javascript?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can add javascript directly into your templates, or you can add it in yoursite/lib/js/yourscript.js
If you add it in your sites lib directory, you can add it to your template like this:
http://zotonic.com/docs/0.9/ref/tags/tag_lib.html?highlight=lib
It is not possible to add javascript from the content management system.