johnny_loki Posted January 13, 2017 Share Posted January 13, 2017 So guys I've been trying to add something like this http://www.w3schools.com/howto/howto_js_tabs.asp to a cms page in my shop, the thing is that even after editing the cms.tpl when adding the HTML code in the editor and try to save I get an error saying "the content field is invalid" so I gave up this code and tried adding this https://www.prestashop.com/forums/topic/170472-tutorial-tabs-for-cms-content/ but even so when I try to locate the blockcms css folder it's not in the blackhawk theme I am using not even in the default-bootstrap. Any Ideas? Link to comment Share on other sites More sharing options...
johnny_loki Posted January 16, 2017 Author Share Posted January 16, 2017 So I managed to find out what's going on I used the code from here http://www.w3schools.com/howto/howto_js_tabs.asp, first I had use this https://www.prestashop.com/forums/topic/273632-solved-cant-add-an-iframe-in-cms-page-155/ as angrycat suggested and then add the style to the cms.css simple as that and ofc I had to turn on the iframes from general. In prestashop\classes\Validate.php line 392 At public static function isCleanHtml($html, $allow_iframe = false) comment out this code /* if (preg_match('/<[\s]*script/ims', $html) || preg_match('/('.$events.')[\s]*=/ims', $html) || preg_match('/.*script\:/ims', $html)) return false; if (!$allow_iframe && preg_match('/<[\s]*(i?frame|form|input|embed|object)/ims', $html)) return false; */ 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