ilclaudio Posted October 19, 2016 Share Posted October 19, 2016 Hi all, is it possible to add some javascript to a CMS page? It is filtered when I save the content. thank you Claudio Link to comment Share on other sites More sharing options...
Logical IT Posted October 19, 2016 Share Posted October 19, 2016 Hello, Try disabling the HTMLPurifier Library. Preferences -> General -> Use HTMLPurifier Library -> No 1 Link to comment Share on other sites More sharing options...
ilclaudio Posted October 20, 2016 Author Share Posted October 20, 2016 It seems that doesn't work. It is alreadey disabled. I had to add the javascript into the file themes/<mytheme>/cms.tpl. cld Link to comment Share on other sites More sharing options...
Logical IT Posted October 21, 2016 Share Posted October 21, 2016 Hello, When adding javascript code in your templates make sure you enclose javascript code with {literal} {/literal} tags. Click link to see an example: http://www.smarty.net/docsv2/en/language.function.literal Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now