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.
i have created a snippet but the css and js are not being called.
this is in my snippet.xml
<section class="oe_snippet_body fancybox">
<div class="post-thumbnail element">
<a data-fancybox-group="gallery" href="/website_fancybox/static/img/Moon.jpg"
<i class="fa fa-search-plus"></i></a>
and i tried to call the css and js using assets.xml
<xpath expr="//head" position="inside">
<link href="/website_fancybox/static/css/bootstrap.min.css" rel="stylesheet" type="text/less"/>
<link href="/website_fancybox/static/css/style.css" rel="stylesheet" type="text/less"/>
<link href="/website_fancybox/static/css/jquery.fancybox.css" rel="stylesheet" type="text/less"/>
how do i make this work. i wanted the image to show in col-md-3 size not its original size. also the js would bring up modal box.
You need a template that inherit "website.assets_editor", something like that:
<template id="custom_css_and_js" inherit_id="website.assets_editor" name="Custom CSS and JS">
<xpath expr="//link[last()]" position="after">
<!-- your custom css goes here -->
<xpath expr="//script[last()]" position="after">
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: 11/13/14, 10:41 PM|
|Seen: 2231 times|
|Last updated: 6/29/15, 6:26 AM|