Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
How can i Make the Website, of the Website Builder to integrate additional js? For instance: respond.js
With the help of Luke respond.js is now loaded in the website. But all browsertests give negaive results. Seems there is no help to support IE8 with an odoo website.
Put the required js into addons/web/static/src/js/example.js
<?xml version="1.0"?> <t t-name="web.assets_common">
I'll add this comment for the people who are using Facebook Pixels, as the solution posted would not work for me using FB pixels.
I think the problem was I needed to call the standard event after the base code. The provided solution puts the base code at the end of the page.
In the html editor for the page you want to add the FB pixel to add the following after the first "t-name" line:
I'm currently working on porting a theme that makes use of respond.js with a bootstrap template.
I suspect that the issue has something to do with the HTML comments that are being used are somehow being sanitised by the HTML editor as i'm not able to see them when I view the html source output. Here's a snippet from what I am currently using:
<link rel="stylesheet" href="theme_example/static/css/ie.css">
<!--[if lte IE 8]>
<!--[if lt IE 9]>
I have also read on stackexchange that for IE 8 the respond.js must be stored locally and cannot be served from a CDN or external source. It is likely irrelevant as you are including it locally, however I have mentioned it for the benefit of anyone else reading this thread.
I'll be running some tests over the weekend if I have time and will post back here once i've found a solution.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/23/14, 12:20 AM|
|Seen: 10076 times|
|Last updated: 1/4/16, 6:57 PM|