Rayan Posted February 20, 2011 Share Posted February 20, 2011 I've been trying to insert a JQUERY BANNER using my home page text editor and I get this error " Invalid html field, javascript is forbidden " . I tried googling but didn\t find any solution to this. Please let me know how I can proceed further? It's urgent Link to comment Share on other sites More sharing options...
shokinro Posted February 20, 2011 Share Posted February 20, 2011 I don't think you can via Javascript in the Home Editor.If you want to do something special using Javascript with jQuery, you will have to change the theme file of Editorial.It locates at/modules/editorial/editorial.tplWhat version of PS are you using? Link to comment Share on other sites More sharing options...
Rayan Posted February 20, 2011 Author Share Posted February 20, 2011 I don't think you can via Javascript in the Home Editor.If you want to do something special using Javascript with jQuery, you will have to change the theme file of Editorial.It locates at/modules/editorial/editorial.tplWhat version of PS are you using? I downloaded it on FEB 5 2011. I guess it's 1.3 Link to comment Share on other sites More sharing options...
shokinro Posted February 20, 2011 Share Posted February 20, 2011 You can find the version of PrestaShop at the bottom of your back office.all you have to do is add your physical address to this file./modules/editorial/editorial.tpl Link to comment Share on other sites More sharing options...
Rayan Posted February 20, 2011 Author Share Posted February 20, 2011 You can find the version of PrestaShop at the bottom of your back office.all you have to do is add your physical address to this file./modules/editorial/editorial.tpl It's Version 1.3.6.0. Secondly, I am using a christmas theme. The website on which I am working in www.nagwsuae.com . Secondly, there is not EDITORIAL file under he modules folder. Only blockadvertising, blockpaymentlogo and homefeatured in under the modules folder. Link to comment Share on other sites More sharing options...
shokinro Posted February 20, 2011 Share Posted February 20, 2011 There will be modules folders, you need to look for in both foldersYourSiteRoot/modules/....YourSiteRoot/themes/christmas/modules/...I assume you are using theme "christmas". Link to comment Share on other sites More sharing options...
Rayan Posted February 20, 2011 Author Share Posted February 20, 2011 There will be modules folders, you need to look for in both foldersYourSiteRoot/modules/....YourSiteRoot/themes/christmas/modules/...I assume you are using theme "christmas". I checked both. But There is no editorial.tpl file located under the modules folder. Link to comment Share on other sites More sharing options...
shokinro Posted February 20, 2011 Share Posted February 20, 2011 its weird, it should be there.If you are using Home Text Editor module to edit the test, it should be there.If you PM me the your FTP access info, I would like have a look. Link to comment Share on other sites More sharing options...
Rayan Posted February 20, 2011 Author Share Posted February 20, 2011 its weird, it should be there.If you are using Home Text Editor module to edit the test, it should be there.If you PM me the your FTP access info, I would like have a look. PM SEnt. Please check and let me know Link to comment Share on other sites More sharing options...
shokinro Posted February 20, 2011 Share Posted February 20, 2011 the folder is right there. Please attached screen image of my FTP Link to comment Share on other sites More sharing options...
Rayan Posted February 20, 2011 Author Share Posted February 20, 2011 the folder is right there. Please attached screen image of my FTP Yes. I found it. Now what to do? How shall I edit the editorial.tpl? What do I have to do it in? I am not a PROGRAMMER. Link to comment Share on other sites More sharing options...
Rayan Posted February 20, 2011 Author Share Posted February 20, 2011 the folder is right there. Please attached screen image of my FTP This is what is written in the editorial.tpl<!-- Module Editorial --> {if $xml->body->home_logo_link}body->home_logo_link|escape:'htmlall':'UTF-8'}" title="{$xml->body->$title|escape:'htmlall':'UTF-8'|stripslashes}">{/if} {if $homepage_logo}body->$title|escape:'htmlall':'UTF-8'|stripslashes}" />{/if} {if $xml->body->home_logo_link}{/if} {if $xml->body->$logo_subheading}{$xml->body->$logo_subheading|stripslashes}{/if} {if $xml->body->$title}{$xml->body->$title|stripslashes}{/if} {if $xml->body->$subheading}{$xml->body->$subheading|stripslashes}{/if} {if $xml->body->$paragraph}{$xml->body->$paragraph|stripslashes}{/if} <!-- /Module Editorial --> Link to comment Share on other sites More sharing options...
shokinro Posted February 20, 2011 Share Posted February 20, 2011 you said you want add jQuery javascript? (I don't know what you want to do)You just add the javascript there as it you add to the home text editor.but you better embrace with your javascript with literal tag.some thing like this <script type="text/javascript"> {literal} You code here.... {literal} </script> Link to comment Share on other sites More sharing options...
Rayan Posted February 20, 2011 Author Share Posted February 20, 2011 you said you want add jQuery javascript? (I don't know what you want to do)You just add the javascript there as it you add to the home text editor.but you better embrace with your javascript with literal tag.some thing like this <script type="text/javascript"> {literal} You code here.... {literal} </script> I am basically going to add a jquery slideshow on my website in the middle. Link to comment Share on other sites More sharing options...
shokinro Posted February 20, 2011 Share Posted February 20, 2011 there should be some existing module there. don't know if there is free one. try search on the forum. 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