Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Dropping snippet onto the page in odoo-9

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 277
    Comment on it

    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.

    <template id="snippet_testimonial_opt" name="Snippet Testimonial Options" inherit_id="website_less.snippet_options">
      <xpath expr="//div[@data-js='background']" position="after">
        <div data-selector=".snippet_testimonial"> <!-- Options group -->
          <li class="dropdown-submenu">
            <a href="#">Your Option</a>
            <ul class="dropdown-menu"> <!-- Options list -->
              <li data-select_class="opt_shadow"><a>Shadow Images</a></li>
              <li data-select_class="opt_grey_bg"><a>Grey Bg</a></li>
              <li data-select_class=""><a>None</a></li>
            </ul>
          </li>
        </div>
      </xpath>
     </template>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: