There's more...

In such cases, there will be no need for extra JavaScript. Odoo's editor offers lots of options and control out of the box, and they are more than enough for static snippets. You will find all existing snippets and options at website/views/snippets.xml.

Snippet options also support data-exclude , data-drop-near, and data-drop-in attributes, which determine where the snippet can be placed when dragging it out of the snippet bar. These are also JQuery selectors, and in step 3 of this recipe, we haven't used them, because we allow for putting the snippet basically anywhere that content can go.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset