Dropping snippet onto the page in odoo-9
5 March, 2021 by
Dropping snippet onto the page in odoo-9
Administrator

For drooping the snippet onto the page first we have to open the src file, add some class and css feature in css file and jas file after that clicks on an option, the system will add the class specified in the data-select_class attribute.
By replacing data-select_class with data-toggle_class you will be able to select more classes at the same time. For example you can see below.

  1. <template id=”snippet_testimonial_opt” name=”Snippet Testimonial Options” inherit_id=”website_less.snippet_options”>
  2. <xpath expr=”//div[@data-js=’background’]” position=”after”>
  3. <div data-selector=”.snippet_testimonial”> <!– Options group –>
  4. <li class=”dropdown-submenu”>
  5. <a href=”#”>Your Option</a>
  6. <ul class=”dropdown-menu”> <!– Options list –>
  7. <li data-select_class=”opt_shadow”><a>Shadow Images</a></li>
  8. <li data-select_class=”opt_grey_bg”><a>Grey Bg</a></li>
  9. <li data-select_class=””><a>None</a></li>
  10. </ul>
  11. </li>
  12. </div>
  13. </xpath>
  14. </template>