guest* Posted August 23, 2010 Share Posted August 23, 2010 Hi, I have some content pages which includes to get work. This pages are for example a BMI calculator, so i need the html code an the specific JS to work in one site together. I tried to include this sites backend via cms, but the included JS does not work because it is not possible to type it into editor.How can I include simple html-pages with their own JS ? Link to comment Share on other sites More sharing options...
cactusman2 Posted August 23, 2010 Share Posted August 23, 2010 In which page do you want to include the code?Product, cms? Link to comment Share on other sites More sharing options...
guest* Posted August 24, 2010 Author Share Posted August 24, 2010 I tried to include in CMS, but the CMS changes the code and so it does not wor anymore:This is my code:[removed]<!--function Berechnung(){function SucheErsetze(Text,Suche,Ersetze){var Neutext = "";var i = 0;while(i < Text.length){if(Text.substring(i,i + Suche.length) == Suche){Neutext = Neutext + Ersetze;i = i + Suche.length - 1;}elseThis is what the html-editor wirtes (he changes de script into [CDATA[ [removed]// <![CDATA[function Berechnung(){function SucheErsetze(Text,Suche,Ersetze){var Neutext = "";var i = 0;while(i < Text.length){if(Text.substring(i,i + Suche.length) == Suche){Neutext = Neutext + Ersetze;i = i + Suche.length - 1;}else// ]]>[removed] Link to comment Share on other sites More sharing options...
guest* Posted August 24, 2010 Author Share Posted August 24, 2010 Where ist written removede I have: < script l a n g u a g e = " JavaScript " t y p e = " t e x t / javascript " >< ! -- Link to comment Share on other sites More sharing options...
cactusman2 Posted August 24, 2010 Share Posted August 24, 2010 In the file cms.tpl of your template folder try to add something like that:{if $cms->id == X}ADD YOUR CODE HERE{/if}X is the ID number of the cms page you want to display your map in 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