Odoo Help

Welcome!

This community 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.

0

How to integrate Completly Bootstrap snippets with odoo website ?

By
Yassine TEIMI
on 6/25/15, 2:39 PM 1,215 views

I want to integrate a bootstrap snippet on my odoo website, but as you know, a snippet is a block composed from Html, css, and sometimes JS Code, that you can integrate into your Odoo website.

So I used the HTML editor to integrate the HTML Code on my odoo website 

How to also integrate to my odoo website the CSS and JS Code ? is there a way to add this on the default theme ?

 

0
Vaishal Patel
On 7/4/16, 6:27 AM

What I did to add a jquery plugin is in the assets.xml file I added :

<template id="myjq" inherit_id="website.assets_frontend" name="Myjq">

<xpath expr="." position="inside">

<script type="text/javascript" src="/theme_vish/static/src/js/jquery.cycle2.min.js" />

<script type="text/javascript" src="/theme_vish/static/src/js/slideshow.js" />

<script type="text/javascript" src="/theme_vish/static/src/js/backtotop.js" />

</xpath>

</template>


and for the css I did:

<template id="mystyle" name="My style" inherit_id="website.assets_frontend">

<xpath expr="link[last()]" position="after">

<link href="/theme_vish/static/less/style.less" rel="stylesheet" type="text/less"/>

</xpath>

</template>


Hopefully, this will help you.

Your Answer

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 6/25/15, 2:39 PM
Seen: 1215 times
Last updated: 7/4/16, 11:32 AM